home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / Read me < prev    next >
MacBinary  |  1993-03-31  |  25.9 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Mar 31 04:21:24 1993, modified Wed Mar 31 04:21:24 1993, creator SimpleText, type ASCII, 25707 bytes "Read me" , at 0x64eb 566 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 52 65 61 64 20 6d | 65 00 00 00 00 00 00 00 |..Read m|e.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 64 6b 00 | 00 02 36 a7 df 13 14 a7 |.....dk.|..6.....|
|00000060| df 13 14 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8b f3 00 00 |........|........|
|00000080| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 3a 20 52 65 |VideoToo|lbox: Re|
|00000090| 61 64 20 6d 65 0d 4d 61 | 72 63 68 20 33 31 2c 20 |ad me.Ma|rch 31, |
|000000a0| 31 39 39 33 0d 0d 44 65 | 6e 69 73 20 50 65 6c 6c |1993..De|nis Pell|
|000000b0| 69 0d 49 6e 73 74 69 74 | 75 74 65 20 66 6f 72 20 |i.Instit|ute for |
|000000c0| 53 65 6e 73 6f 72 79 20 | 52 65 73 65 61 72 63 68 |Sensory |Research|
|000000d0| 0d 53 79 72 61 63 75 73 | 65 20 55 6e 69 76 65 72 |.Syracus|e Univer|
|000000e0| 73 69 74 79 0d 4d 65 72 | 72 69 6c 6c 20 4c 61 6e |sity.Mer|rill Lan|
|000000f0| 65 0d 53 79 72 61 63 75 | 73 65 2c 20 4e 59 20 31 |e.Syracu|se, NY 1|
|00000100| 33 32 34 34 2d 35 32 39 | 30 0d 64 65 6e 69 73 5f |3244-529|0.denis_|
|00000110| 70 65 6c 6c 69 40 69 73 | 72 2e 73 79 72 2e 65 64 |pelli@is|r.syr.ed|
|00000120| 75 0d 0d 54 68 65 20 56 | 69 64 65 6f 54 6f 6f 6c |u..The V|ideoTool|
|00000130| 62 6f 78 20 69 73 20 61 | 20 63 6f 6c 6c 65 63 74 |box is a| collect|
|00000140| 69 6f 6e 20 6f 66 20 6e | 65 61 72 6c 79 20 74 77 |ion of n|early tw|
|00000150| 6f 20 68 75 6e 64 72 65 | 64 20 43 20 73 75 62 72 |o hundre|d C subr|
|00000160| 6f 75 74 69 6e 65 73 20 | 61 6e 64 20 73 65 76 65 |outines |and seve|
|00000170| 72 61 6c 20 64 65 6d 6f | 20 61 6e 64 20 75 74 69 |ral demo| and uti|
|00000180| 6c 69 74 79 20 70 72 6f | 67 72 61 6d 73 20 74 68 |lity pro|grams th|
|00000190| 61 74 20 49 20 61 6e 64 | 20 6f 74 68 65 72 73 20 |at I and| others |
|000001a0| 68 61 76 65 20 77 72 69 | 74 74 65 6e 20 74 6f 20 |have wri|tten to |
|000001b0| 64 6f 20 76 69 73 75 61 | 6c 20 70 73 79 63 68 6f |do visua|l psycho|
|000001c0| 70 68 79 73 69 63 73 20 | 77 69 74 68 20 4d 61 63 |physics |with Mac|
|000001d0| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|000001e0| 2e 20 49 74 27 73 20 66 | 72 65 65 20 61 6e 64 20 |. It's f|ree and |
|000001f0| 6d 61 79 20 6e 6f 74 20 | 62 65 20 73 6f 6c 64 20 |may not |be sold |
|00000200| 77 69 74 68 6f 75 74 20 | 70 65 72 6d 69 73 73 69 |without |permissi|
|00000210| 6f 6e 2e 20 49 74 20 73 | 68 6f 75 6c 64 20 62 65 |on. It s|hould be|
|00000220| 20 75 73 65 66 75 6c 20 | 74 6f 20 61 6e 79 6f 6e | useful |to anyon|
|00000230| 65 20 77 68 6f 20 77 61 | 6e 74 73 20 74 6f 20 70 |e who wa|nts to p|
|00000240| 72 65 73 65 6e 74 20 61 | 63 63 75 72 61 74 65 6c |resent a|ccuratel|
|00000250| 79 20 73 70 65 63 69 66 | 69 65 64 20 76 69 73 75 |y specif|ied visu|
|00000260| 61 6c 20 73 74 69 6d 75 | 6c 69 20 6f 72 20 75 73 |al stimu|li or us|
|00000270| 65 20 74 68 65 20 4d 61 | 63 20 66 6f 72 20 70 73 |e the Ma|c for ps|
|00000280| 79 63 68 6f 6d 65 74 72 | 69 63 20 65 78 70 65 72 |ychometr|ic exper|
|00000290| 69 6d 65 6e 74 73 2e 20 | 54 68 65 20 74 65 78 74 |iments. |The text|
|000002a0| 20 66 69 6c 65 20 d2 56 | 69 64 65 6f 20 73 79 6e | file .V|ideo syn|
|000002b0| 63 68 d3 20 64 69 73 63 | 75 73 73 65 73 20 61 6c |ch. disc|usses al|
|000002c0| 6c 20 74 68 65 20 77 61 | 79 73 20 6f 66 20 73 79 |l the wa|ys of sy|
|000002d0| 6e 63 68 72 6f 6e 69 7a | 69 6e 67 20 70 72 6f 67 |nchroniz|ing prog|
|000002e0| 72 61 6d 73 20 74 6f 20 | 76 69 64 65 6f 20 64 69 |rams to |video di|
|000002f0| 73 70 6c 61 79 73 20 61 | 6e 64 20 74 68 65 20 6d |splays a|nd the m|
|00000300| 61 6e 79 20 70 69 74 66 | 61 6c 6c 73 20 74 6f 20 |any pitf|alls to |
|00000310| 61 76 6f 69 64 2e 20 54 | 68 65 20 54 69 6d 65 56 |avoid. T|he TimeV|
|00000320| 69 64 65 6f 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ideo app|lication|
|00000330| 20 63 68 65 63 6b 73 20 | 6f 75 74 20 74 68 65 20 | checks |out the |
|00000340| 74 69 6d 69 6e 67 20 6f | 66 20 61 6c 6c 20 76 69 |timing o|f all vi|
|00000350| 64 65 6f 20 64 65 76 69 | 63 65 73 20 69 6e 20 61 |deo devi|ces in a|
|00000360| 6e 74 69 63 69 70 61 74 | 69 6f 6e 20 6f 66 20 74 |nticipat|ion of t|
|00000370| 68 65 69 72 20 75 73 65 | 20 69 6e 20 63 72 69 74 |heir use| in crit|
|00000380| 69 63 61 6c 20 72 65 61 | 6c 2d 74 69 6d 65 20 61 |ical rea|l-time a|
|00000390| 70 70 6c 69 63 61 74 69 | 6f 6e 73 2c 20 65 2e 67 |pplicati|ons, e.g|
|000003a0| 2e 20 6d 6f 76 69 65 73 | 20 6f 72 20 6c 6f 6f 6b |. movies| or look|
|000003b0| 75 70 20 74 61 62 6c 65 | 20 61 6e 69 6d 61 74 69 |up table| animati|
|000003c0| 6f 6e 2e 20 4c 6f 77 2d | 6c 65 76 65 6c 20 72 6f |on. Low-|level ro|
|000003d0| 75 74 69 6e 65 73 20 63 | 6f 6e 74 72 6f 6c 20 76 |utines c|ontrol v|
|000003e0| 69 64 65 6f 20 74 69 6d | 69 6e 67 20 61 6e 64 20 |ideo tim|ing and |
|000003f0| 6c 6f 6f 6b 75 70 20 74 | 61 62 6c 65 73 2c 20 64 |lookup t|ables, d|
|00000400| 69 73 70 6c 61 79 20 72 | 65 61 6c 2d 74 69 6d 65 |isplay r|eal-time|
|00000410| 20 6d 6f 76 69 65 73 2c | 20 61 6e 64 20 69 6d 70 | movies,| and imp|
|00000420| 6c 65 6d 65 6e 74 20 74 | 68 65 20 6c 75 6d 69 6e |lement t|he lumin|
|00000430| 61 6e 63 65 2d 63 6f 6e | 74 72 6f 6c 20 61 6c 67 |ance-con|trol alg|
|00000440| 6f 72 69 74 68 6d 73 20 | 73 75 67 67 65 73 74 65 |orithms |suggeste|
|00000450| 64 20 62 79 20 50 65 6c | 6c 69 20 61 6e 64 20 5a |d by Pel|li and Z|
|00000460| 68 61 6e 67 20 28 31 39 | 39 31 29 2e 20 48 69 67 |hang (19|91). Hig|
|00000470| 68 2d 6c 65 76 65 6c 20 | 72 6f 75 74 69 6e 65 73 |h-level |routines|
|00000480| 20 68 65 6c 70 20 61 6e | 61 6c 79 7a 65 20 70 73 | help an|alyze ps|
|00000490| 79 63 68 6f 70 68 79 73 | 69 63 61 6c 20 65 78 70 |ychophys|ical exp|
|000004a0| 65 72 69 6d 65 6e 74 73 | 20 28 65 2e 67 2e 20 67 |eriments| (e.g. g|
|000004b0| 72 61 70 68 69 6e 67 20 | 6f 72 20 6d 61 78 69 6d |raphing |or maxim|
|000004c0| 75 6d 2d 6c 69 6b 65 6c | 69 68 6f 6f 64 20 66 69 |um-likel|ihood fi|
|000004d0| 74 74 69 6e 67 20 6f 66 | 20 70 73 79 63 68 6f 6d |tting of| psychom|
|000004e0| 65 74 72 69 63 20 64 61 | 74 61 29 2e 20 54 68 69 |etric da|ta). Thi|
|000004f0| 73 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 68 61 73 |s collec|tion has|
|00000500| 20 62 65 65 6e 20 63 6f | 6e 74 69 6e 75 61 6c 6c | been co|ntinuall|
|00000510| 79 20 75 70 64 61 74 65 | 64 20 73 69 6e 63 65 20 |y update|d since |
|00000520| 31 39 39 31 2e 20 4d 61 | 6e 79 20 63 6f 6c 6c 65 |1991. Ma|ny colle|
|00000530| 61 67 75 65 73 20 68 61 | 76 65 20 69 6e 64 69 63 |agues ha|ve indic|
|00000540| 61 74 65 64 20 74 68 61 | 74 20 74 68 65 79 20 61 |ated tha|t they a|
|00000550| 72 65 20 75 73 69 6e 67 | 20 74 68 65 20 73 6f 66 |re using| the sof|
|00000560| 74 77 61 72 65 20 69 6e | 20 74 68 65 69 72 20 6c |tware in| their l|
|00000570| 61 62 73 2e 20 44 6f 63 | 75 6d 65 6e 74 61 74 69 |abs. Doc|umentati|
|00000580| 6f 6e 20 69 73 20 69 6e | 20 74 68 65 20 73 6f 75 |on is in| the sou|
|00000590| 72 63 65 20 66 69 6c 65 | 73 20 74 68 65 6d 73 65 |rce file|s themse|
|000005a0| 6c 76 65 73 2e 20 4d 6f | 73 74 20 6f 66 20 74 68 |lves. Mo|st of th|
|000005b0| 65 20 72 6f 75 74 69 6e | 65 73 20 61 72 65 20 4d |e routin|es are M|
|000005c0| 61 63 2d 73 70 65 63 69 | 66 69 63 2c 20 62 75 74 |ac-speci|fic, but|
|000005d0| 20 73 6f 6d 65 20 76 65 | 72 79 20 75 73 65 66 75 | some ve|ry usefu|
|000005e0| 6c 20 72 6f 75 74 69 6e | 65 73 2c 20 65 2e 67 2e |l routin|es, e.g.|
|000005f0| 20 74 68 65 20 6c 75 6d | 69 6e 61 6e 63 65 2d 63 | the lum|inance-c|
|00000600| 6f 6e 74 72 6f 6c 2c 20 | 73 74 61 74 69 73 74 69 |ontrol, |statisti|
|00000610| 63 73 2c 20 61 6e 64 20 | 6d 61 78 69 6d 75 6d 2d |cs, and |maximum-|
|00000620| 6c 69 6b 65 6c 69 68 6f | 6f 64 20 66 69 74 74 69 |likeliho|od fitti|
|00000630| 6e 67 20 61 6c 67 6f 72 | 69 74 68 6d 73 2c 20 63 |ng algor|ithms, c|
|00000640| 6f 75 6c 64 20 65 61 73 | 69 6c 79 20 62 65 20 70 |ould eas|ily be p|
|00000650| 6f 72 74 65 64 20 74 6f | 20 6f 74 68 65 72 20 63 |orted to| other c|
|00000660| 6f 6d 70 75 74 65 72 73 | 2e 20 54 68 6f 73 65 20 |omputers|. Those |
|00000670| 77 69 73 68 69 6e 67 20 | 74 6f 20 61 63 6b 6e 6f |wishing |to ackno|
|00000680| 77 6c 65 64 67 65 20 75 | 73 65 20 6f 66 20 74 68 |wledge u|se of th|
|00000690| 65 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 20 73 |e VideoT|oolbox s|
|000006a0| 6f 66 74 77 61 72 65 20 | 6d 69 67 68 74 20 63 69 |oftware |might ci|
|000006b0| 74 65 3a 20 0d 50 65 6c | 6c 69 2c 20 44 2e 20 47 |te: .Pel|li, D. G|
|000006c0| 2e 20 61 6e 64 20 5a 68 | 61 6e 67 2c 20 4c 2e 20 |. and Zh|ang, L. |
|000006d0| 28 31 39 39 31 29 20 41 | 63 63 75 72 61 74 65 20 |(1991) A|ccurate |
|000006e0| 63 6f 6e 74 72 6f 6c 20 | 6f 66 20 63 6f 6e 74 72 |control |of contr|
|000006f0| 61 73 74 20 6f 6e 20 6d | 69 63 72 6f 63 6f 6d 70 |ast on m|icrocomp|
|00000700| 75 74 65 72 20 64 69 73 | 70 6c 61 79 73 2e 20 56 |uter dis|plays. V|
|00000710| 69 73 69 6f 6e 20 52 65 | 73 65 61 72 63 68 2c 20 |ision Re|search, |
|00000720| 33 31 2c 20 31 33 33 37 | 2d 31 33 35 30 2e 20 52 |31, 1337|-1350. R|
|00000730| 65 70 72 69 6e 74 73 20 | 61 72 65 20 61 76 61 69 |eprints |are avai|
|00000740| 6c 61 62 6c 65 2e 20 0d | 0d 41 56 41 49 4c 41 42 |lable. .|.AVAILAB|
|00000750| 49 4c 49 54 59 3a 0d 54 | 68 65 20 56 69 64 65 6f |ILITY:.T|he Video|
|00000760| 54 6f 6f 6c 62 6f 78 20 | 73 6f 66 74 77 61 72 65 |Toolbox |software|
|00000770| 20 69 73 20 63 6f 6e 74 | 69 6e 75 61 6c 6c 79 20 | is cont|inually |
|00000780| 75 70 64 61 74 65 64 2e | 20 54 6f 20 67 65 74 20 |updated.| To get |
|00000790| 74 68 65 20 6c 61 74 65 | 73 74 20 76 65 72 73 69 |the late|st versi|
|000007a0| 6f 6e 2c 20 6a 75 73 74 | 20 73 65 6e 64 20 6d 65 |on, just| send me|
|000007b0| 20 79 6f 75 72 20 6d 61 | 69 6c 69 6e 67 20 61 64 | your ma|iling ad|
|000007c0| 64 72 65 73 73 2c 20 61 | 6e 64 20 49 d5 6c 6c 20 |dress, a|nd I.ll |
|000007d0| 6d 61 69 6c 20 79 6f 75 | 20 61 20 64 69 73 6b 2e |mail you| a disk.|
|000007e0| 20 4f 72 20 64 6f 77 6e | 6c 6f 61 64 20 d2 56 69 | Or down|load .Vi|
|000007f0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 73 65 61 d3 20 |deoToolb|ox.sea. |
|00000800| 28 61 20 73 65 6c 66 2d | 65 78 74 72 61 63 74 69 |(a self-|extracti|
|00000810| 6e 67 20 61 72 63 68 69 | 76 65 29 20 65 6c 65 63 |ng archi|ve) elec|
|00000820| 74 72 6f 6e 69 63 61 6c | 6c 79 20 66 72 6f 6d 20 |tronical|ly from |
|00000830| 74 68 65 20 49 6e 66 6f | 2d 4d 61 63 20 6f 72 20 |the Info|-Mac or |
|00000840| 4d 61 63 50 73 79 63 68 | 20 61 72 63 68 69 76 65 |MacPsych| archive|
|00000850| 73 2e 20 54 68 65 20 66 | 74 70 20 73 65 72 76 65 |s. The f|tp serve|
|00000860| 72 73 20 61 72 65 20 63 | 61 6c 6c 65 64 20 73 75 |rs are c|alled su|
|00000870| 6d 65 78 2d 61 69 6d 2e | 73 74 61 6e 66 6f 72 64 |mex-aim.|stanford|
|00000880| 2e 65 64 75 20 5b 33 36 | 2e 34 34 2e 30 2e 36 5d |.edu [36|.44.0.6]|
|00000890| 20 28 6c 6f 6f 6b 20 69 | 6e 20 69 6e 66 6f 2d 6d | (look i|n info-m|
|000008a0| 61 63 2f 73 6f 75 72 63 | 65 2f 63 29 20 61 6e 64 |ac/sourc|e/c) and|
|000008b0| 20 66 74 70 2e 73 74 6f | 6c 61 66 2e 65 64 75 20 | ftp.sto|laf.edu |
|000008c0| 5b 31 33 30 2e 37 31 2e | 31 32 38 2e 39 5d 20 28 |[130.71.|128.9] (|
|000008d0| 6c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 70 75 62 2f |look in |the pub/|
|000008e0| 6d 61 63 70 73 79 63 68 | 20 64 69 72 65 63 74 6f |macpsych| directo|
|000008f0| 72 79 29 2e 20 4c 6f 67 | 20 69 6e 20 61 73 20 22 |ry). Log| in as "|
|00000900| 61 6e 6f 6e 79 6d 6f 75 | 73 22 3b 20 61 6e 79 20 |anonymou|s"; any |
|00000910| 70 61 73 73 77 6f 72 64 | 20 77 69 6c 6c 20 64 6f |password| will do|
|00000920| 2e 20 54 68 65 20 67 6f | 70 68 65 72 20 73 65 72 |. The go|pher ser|
|00000930| 76 65 72 73 20 61 72 65 | 20 63 61 6c 6c 65 64 20 |vers are| called |
|00000940| 49 6e 66 6f 2d 4d 61 63 | 20 41 72 63 68 69 76 65 |Info-Mac| Archive|
|00000950| 73 20 28 6c 6f 6f 6b 20 | 69 6e 20 69 6e 66 6f 2d |s (look |in info-|
|00000960| 6d 61 63 2f 73 6f 75 72 | 63 65 29 20 61 6e 64 20 |mac/sour|ce) and |
|00000970| 53 74 2e 20 4f 6c 61 66 | 20 55 6e 69 76 65 72 73 |St. Olaf| Univers|
|00000980| 69 74 79 20 28 6c 6f 6f | 6b 20 69 6e 20 4e 65 74 |ity (loo|k in Net|
|00000990| 77 6f 72 6b 20 52 65 73 | 6f 75 72 63 65 73 2f 53 |work Res|ources/S|
|000009a0| 74 2e 20 4f 6c 61 66 20 | 4d 61 69 6c 69 6e 67 20 |t. Olaf |Mailing |
|000009b0| 4c 69 73 74 73 2f 4d 61 | 63 50 73 79 63 68 29 2e |Lists/Ma|cPsych).|
|000009c0| 20 54 6f 20 75 73 65 20 | 74 68 65 20 65 6d 61 69 | To use |the emai|
|000009d0| 6c 20 66 69 6c 65 20 73 | 65 72 76 65 72 73 20 73 |l file s|ervers s|
|000009e0| 65 6e 64 20 61 20 71 75 | 65 72 79 20 74 6f 20 49 |end a qu|ery to I|
|000009f0| 6e 66 6f 2d 4d 61 63 2d | 52 65 71 75 65 73 74 40 |nfo-Mac-|Request@|
|00000a00| 73 75 6d 65 78 2d 61 69 | 6d 2e 73 74 61 6e 66 6f |sumex-ai|m.stanfo|
|00000a10| 72 64 2e 65 64 75 20 6f | 72 20 6d 61 63 70 73 79 |rd.edu o|r macpsy|
|00000a20| 63 68 2d 72 65 71 75 65 | 73 74 40 73 74 6f 6c 61 |ch-reque|st@stola|
|00000a30| 66 2e 65 64 75 2e 20 0d | 0d 54 68 65 20 49 53 52 |f.edu. .|.The ISR|
|00000a40| 20 56 69 64 65 6f 20 41 | 74 74 65 6e 75 61 74 6f | Video A|ttenuato|
|00000a50| 72 20 69 73 20 61 20 63 | 6f 6d 6d 65 72 63 69 61 |r is a c|ommercia|
|00000a60| 6c 20 70 72 6f 64 75 63 | 74 2e 20 4f 72 64 65 72 |l produc|t. Order|
|00000a70| 69 6e 67 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |ing inst|ructions|
|00000a80| 20 61 72 65 20 69 6e 20 | 74 68 65 20 d2 56 69 64 | are in |the .Vid|
|00000a90| 65 6f 20 41 74 74 65 6e | 75 61 74 6f 72 d3 20 66 |eo Atten|uator. f|
|00000aa0| 69 6c 65 2e 20 49 20 68 | 61 76 65 20 6e 6f 20 66 |ile. I h|ave no f|
|00000ab0| 69 6e 61 6e 63 69 61 6c | 20 69 6e 76 6f 6c 76 65 |inancial| involve|
|00000ac0| 6d 65 6e 74 20 69 6e 20 | 74 68 65 20 49 53 52 20 |ment in |the ISR |
|00000ad0| 56 69 64 65 6f 20 41 74 | 74 65 6e 75 61 74 6f 72 |Video At|tenuator|
|00000ae0| 2e 0d 0d 47 45 54 54 49 | 4e 47 20 53 54 41 52 54 |...GETTI|NG START|
|00000af0| 45 44 3a 0d 54 72 79 20 | 74 68 65 20 64 65 6d 6f |ED:.Try |the demo|
|00000b00| 73 3a 20 53 61 6e 64 73 | 74 6f 72 6d 2c 20 47 72 |s: Sands|torm, Gr|
|00000b10| 61 74 69 6e 67 2c 20 46 | 6c 69 63 6b 65 72 69 6e |ating, F|lickerin|
|00000b20| 67 47 72 61 74 69 6e 67 | 2c 20 46 69 6c 74 65 72 |gGrating|, Filter|
|00000b30| 2c 20 61 6e 64 20 54 69 | 6d 65 56 69 64 65 6f 2e |, and Ti|meVideo.|
|00000b40| 20 54 69 6d 65 56 69 64 | 65 6f 20 74 69 6d 65 73 | TimeVid|eo times|
|00000b50| 20 61 6c 6c 20 6f 66 20 | 79 6f 75 72 20 64 69 73 | all of |your dis|
|00000b60| 70 6c 61 79 73 2c 20 74 | 65 6c 6c 69 6e 67 20 79 |plays, t|elling y|
|00000b70| 6f 75 20 68 6f 77 20 71 | 75 69 63 6b 6c 79 20 79 |ou how q|uickly y|
|00000b80| 6f 75 20 63 61 6e 20 73 | 68 6f 77 20 6d 6f 76 69 |ou can s|how movi|
|00000b90| 65 73 20 61 6e 64 20 64 | 6f 20 6c 6f 6f 6b 75 70 |es and d|o lookup|
|00000ba0| 20 74 61 62 6c 65 20 61 | 6e 69 6d 61 74 69 6f 6e | table a|nimation|
|00000bb0| 2e 20 52 65 61 64 20 d2 | 56 69 64 65 6f 20 73 79 |. Read .|Video sy|
|00000bc0| 6e 63 68 d3 2e 0d 0d 50 | 75 74 20 74 68 65 20 56 |nch....P|ut the V|
|00000bd0| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 20 66 6f 6c 64 |ideoTool|box fold|
|00000be0| 65 72 20 61 6e 79 77 68 | 65 72 65 20 6f 6e 20 79 |er anywh|ere on y|
|00000bf0| 6f 75 72 20 68 61 72 64 | 20 64 69 73 6b 2e 20 54 |our hard| disk. T|
|00000c00| 68 65 20 6b 65 79 20 68 | 65 61 64 65 72 20 66 69 |he key h|eader fi|
|00000c10| 6c 65 73 3a 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f |les: Vid|eoToolbo|
|00000c20| 78 2e 68 2c 20 4c 75 6d | 69 6e 61 6e 63 65 2e 68 |x.h, Lum|inance.h|
|00000c30| 2c 20 61 6e 64 20 6d 63 | 36 38 38 38 31 2e 68 2c |, and mc|68881.h,|
|00000c40| 20 73 68 6f 75 6c 64 20 | 62 65 20 69 6e 20 79 6f | should |be in yo|
|00000c50| 75 72 20 54 48 49 4e 4b | 20 43 20 66 6f 6c 64 65 |ur THINK| C folde|
|00000c60| 72 20 28 6f 72 20 61 6e | 79 20 73 75 62 66 6f 6c |r (or an|y subfol|
|00000c70| 64 65 72 20 77 69 74 68 | 69 6e 20 69 74 29 2c 20 |der with|in it), |
|00000c80| 73 6f 20 74 68 61 74 20 | 54 48 49 4e 4b 20 43 20 |so that |THINK C |
|00000c90| 63 61 6e 20 66 69 6e 64 | 20 74 68 65 6d 2e 20 54 |can find| them. T|
|00000ca0| 68 65 20 73 69 6d 70 6c | 65 73 74 20 77 61 79 20 |he simpl|est way |
|00000cb0| 74 6f 20 61 63 68 69 65 | 76 65 20 74 68 61 74 20 |to achie|ve that |
|00000cc0| 69 73 20 74 6f 20 70 6c | 61 63 65 20 74 68 65 20 |is to pl|ace the |
|00000cd0| 65 6e 74 69 72 65 20 56 | 69 64 65 6f 54 6f 6f 6c |entire V|ideoTool|
|00000ce0| 62 6f 78 20 69 6e 73 69 | 64 65 20 79 6f 75 72 20 |box insi|de your |
|00000cf0| 54 48 49 4e 4b 20 43 20 | 66 6f 6c 64 65 72 2e 20 |THINK C |folder. |
|00000d00| 49 6e 73 74 65 61 64 20 | 6f 66 20 63 6f 70 79 69 |Instead |of copyi|
|00000d10| 6e 67 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |ng sourc|e files |
|00000d20| 74 6f 20 79 6f 75 72 20 | 70 72 6f 6a 65 63 74 73 |to your |projects|
|00000d30| 2c 20 6a 75 73 74 20 d2 | 41 64 64 d3 20 74 68 65 |, just .|Add. the|
|00000d40| 6d 20 75 73 69 6e 67 20 | 74 68 65 20 54 48 49 4e |m using |the THIN|
|00000d50| 4b 20 43 20 53 6f 75 72 | 63 65 20 6d 65 6e 75 2e |K C Sour|ce menu.|
|00000d60| 20 54 68 61 74 20 77 69 | 6c 6c 20 6d 61 6b 65 20 | That wi|ll make |
|00000d70| 69 74 20 65 61 73 79 20 | 74 6f 20 75 70 64 61 74 |it easy |to updat|
|00000d80| 65 20 74 68 65 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |e the Vi|deoToolb|
|00000d90| 6f 78 2e 20 0d 0d 41 6c | 6c 20 74 68 65 20 70 72 |ox. ..Al|l the pr|
|00000da0| 6f 67 72 61 6d 73 20 74 | 68 61 74 20 64 6f 20 61 |ograms t|hat do a|
|00000db0| 63 63 75 72 61 74 65 20 | 6c 75 6d 69 6e 61 6e 63 |ccurate |luminanc|
|00000dc0| 65 20 63 6f 6e 74 72 6f | 6c 20 75 73 65 20 74 68 |e contro|l use th|
|00000dd0| 65 20 6d 6f 6e 69 74 6f | 72 2d 63 61 6c 69 62 72 |e monito|r-calibr|
|00000de0| 61 74 69 6f 6e 20 64 61 | 74 61 20 73 74 6f 72 65 |ation da|ta store|
|00000df0| 64 20 69 6e 20 4c 75 6d | 69 6e 61 6e 63 65 52 65 |d in Lum|inanceRe|
|00000e00| 63 6f 72 64 31 2e 68 20 | 6f 72 20 4c 75 6d 69 6e |cord1.h |or Lumin|
|00000e10| 61 6e 63 65 52 65 63 6f | 72 64 32 2e 68 20 28 74 |anceReco|rd2.h (t|
|00000e20| 68 65 20 6e 75 6d 62 65 | 72 20 69 73 20 61 20 73 |he numbe|r is a s|
|00000e30| 63 72 65 65 6e 20 6e 75 | 6d 62 65 72 2c 20 73 69 |creen nu|mber, si|
|00000e40| 6d 69 6c 61 72 2d 2d 62 | 75 74 20 6e 6f 74 20 69 |milar--b|ut not i|
|00000e50| 64 65 6e 74 69 63 61 6c | 2d 2d 74 6f 20 74 68 65 |dentical|--to the|
|00000e60| 20 6e 75 6d 62 65 72 20 | 74 68 61 74 20 61 70 70 | number |that app|
|00000e70| 65 61 72 73 20 69 6e 20 | 74 68 65 20 4d 6f 6e 69 |ears in |the Moni|
|00000e80| 74 6f 72 73 20 63 6f 6e | 74 72 6f 6c 20 70 61 6e |tors con|trol pan|
|00000e90| 65 6c 29 2e 20 54 68 65 | 73 65 20 63 61 6c 69 62 |el). The|se calib|
|00000ea0| 72 61 74 69 6f 6e 20 66 | 69 6c 65 73 20 64 65 73 |ration f|iles des|
|00000eb0| 63 72 69 62 65 20 6d 79 | 20 6d 6f 6e 69 74 6f 72 |cribe my| monitor|
|00000ec0| 73 20 28 41 70 70 6c 65 | 20 48 69 67 68 2d 52 65 |s (Apple| High-Re|
|00000ed0| 73 6f 6c 75 74 69 6f 6e | 20 4d 6f 6e 6f 63 68 72 |solution| Monochr|
|00000ee0| 6f 6d 65 29 2c 20 61 6e | 64 2c 20 6e 61 74 75 72 |ome), an|d, natur|
|00000ef0| 61 6c 6c 79 2c 20 62 65 | 66 6f 72 65 20 64 6f 69 |ally, be|fore doi|
|00000f00| 6e 67 20 61 6e 79 20 73 | 65 72 69 6f 75 73 20 64 |ng any s|erious d|
|00000f10| 61 74 61 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 79 |ata coll|ection y|
|00000f20| 6f 75 20 73 68 6f 75 6c | 64 20 72 65 70 6c 61 63 |ou shoul|d replac|
|00000f30| 65 20 74 68 65 73 65 20 | 66 69 6c 65 73 20 77 69 |e these |files wi|
|00000f40| 74 68 20 6f 6e 65 73 20 | 74 68 61 74 20 64 65 73 |th ones |that des|
|00000f50| 63 72 69 62 65 20 79 6f | 75 72 20 6f 77 6e 20 6d |cribe yo|ur own m|
|00000f60| 6f 6e 69 74 6f 72 73 2e | 20 55 73 65 20 74 68 65 |onitors.| Use the|
|00000f70| 20 43 61 6c 69 62 72 61 | 74 65 4c 75 6d 69 6e 61 | Calibra|teLumina|
|00000f80| 6e 63 65 20 70 72 6f 67 | 72 61 6d 2e 20 59 6f 75 |nce prog|ram. You|
|00000f90| d5 6c 6c 20 6e 65 65 64 | 20 61 20 70 68 6f 74 6f |.ll need| a photo|
|00000fa0| 6d 65 74 65 72 2e 0d 0d | 4e 55 4d 45 52 49 43 41 |meter...|NUMERICA|
|00000fb0| 4c 20 52 45 43 49 50 45 | 53 20 49 4e 20 43 3a 0d |L RECIPE|S IN C:.|
|00000fc0| 41 20 66 65 77 20 70 72 | 6f 67 72 61 6d 73 20 69 |A few pr|ograms i|
|00000fd0| 6e 20 74 68 65 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |n the Vi|deoToolb|
|00000fe0| 6f 78 20 28 43 61 6c 69 | 62 72 61 74 65 4c 75 6d |ox (Cali|brateLum|
|00000ff0| 69 6e 61 6e 63 65 2e 63 | 2c 20 50 73 79 63 68 6f |inance.c|, Psycho|
|00001000| 6d 65 74 72 69 63 46 69 | 74 2e 63 2c 20 61 6e 64 |metricFi|t.c, and|
|00001010| 20 51 75 69 63 6b 33 29 | 20 75 73 65 20 74 68 65 | Quick3)| use the|
|00001020| 20 28 76 65 72 79 20 68 | 61 6e 64 79 29 20 4e 75 | (very h|andy) Nu|
|00001030| 6d 65 72 69 63 61 6c 20 | 52 65 63 69 70 65 73 20 |merical |Recipes |
|00001040| 73 6f 66 74 77 61 72 65 | 20 61 6e 64 20 62 6f 6f |software| and boo|
|00001050| 6b 2e 20 52 65 71 75 69 | 72 65 64 20 63 68 61 6e |k. Requi|red chan|
|00001060| 67 65 73 20 74 6f 20 74 | 68 65 73 65 20 72 6f 75 |ges to t|hese rou|
|00001070| 74 69 6e 65 73 20 28 62 | 75 67 20 66 69 78 65 73 |tines (b|ug fixes|
|00001080| 29 20 61 72 65 20 64 65 | 73 63 72 69 62 65 64 20 |) are de|scribed |
|00001090| 69 6e 20 74 68 65 20 d2 | 49 6d 70 72 6f 76 65 20 |in the .|Improve |
|000010a0| 4e 75 6d 65 72 69 63 61 | 6c 20 52 65 63 69 70 65 |Numerica|l Recipe|
|000010b0| 73 d3 20 64 6f 63 75 6d | 65 6e 74 20 69 6e 20 74 |s. docum|ent in t|
|000010c0| 68 65 20 4e 6f 74 65 73 | 20 66 6f 6c 64 65 72 2e |he Notes| folder.|
|000010d0| 20 49 20 68 61 76 65 20 | 69 6e 63 6c 75 64 65 64 | I have |included|
|000010e0| 20 70 72 65 2d 63 6f 6d | 70 69 6c 65 64 20 43 61 | pre-com|piled Ca|
|000010f0| 6c 69 62 72 61 74 65 4c | 75 6d 69 6e 61 6e 63 65 |librateL|uminance|
|00001100| 20 61 6e 64 20 51 75 69 | 63 6b 33 20 61 70 70 6c | and Qui|ck3 appl|
|00001110| 69 63 61 74 69 6f 6e 73 | 20 66 6f 72 20 75 73 65 |ications| for use|
|00001120| 72 73 20 74 68 61 74 20 | 64 6f 6e d5 74 20 68 61 |rs that |don.t ha|
|00001130| 76 65 20 74 68 65 20 4e | 75 6d 65 72 69 63 61 6c |ve the N|umerical|
|00001140| 20 52 65 63 69 70 65 73 | 2e 20 0d 4e 75 6d 65 72 | Recipes|. .Numer|
|00001150| 69 63 61 6c 20 52 65 63 | 69 70 65 73 20 43 20 44 |ical Rec|ipes C D|
|00001160| 69 73 6b 65 74 74 65 20 | 66 6f 72 20 4d 61 63 69 |iskette |for Maci|
|00001170| 6e 74 6f 73 68 20 24 33 | 32 2e 35 30 0d 4e 75 6d |ntosh $3|2.50.Num|
|00001180| 65 72 69 63 61 6c 20 52 | 65 63 69 70 65 73 20 69 |erical R|ecipes i|
|00001190| 6e 20 43 3a 20 54 68 65 | 20 41 72 74 20 6f 66 20 |n C: The| Art of |
|000011a0| 53 63 69 65 6e 74 69 66 | 69 63 20 43 6f 6d 70 75 |Scientif|ic Compu|
|000011b0| 74 69 6e 67 20 24 34 37 | 2e 35 30 0d 66 72 6f 6d |ting $47|.50.from|
|000011c0| 3a 0d 43 61 6d 62 72 69 | 64 67 65 20 55 6e 69 76 |:.Cambri|dge Univ|
|000011d0| 65 72 73 69 74 79 20 50 | 72 65 73 73 0d 4f 72 64 |ersity P|ress.Ord|
|000011e0| 65 72 73 20 44 65 70 61 | 72 74 6d 65 6e 74 0d 31 |ers Depa|rtment.1|
|000011f0| 31 30 20 4d 69 64 6c 61 | 6e 64 20 41 76 65 6e 75 |10 Midla|nd Avenu|
|00001200| 65 0d 50 6f 72 74 20 43 | 68 65 73 74 65 72 2c 20 |e.Port C|hester, |
|00001210| 4e 59 20 31 30 35 37 33 | 0d 31 2d 28 38 30 30 29 |NY 10573|.1-(800)|
|00001220| 2d 32 32 37 2d 30 32 34 | 37 0d 0d 43 4f 4d 50 55 |-227-024|7..COMPU|
|00001230| 54 45 52 20 43 4f 4d 50 | 41 54 49 42 49 4c 49 54 |TER COMP|ATIBILIT|
|00001240| 59 3a 0d 53 65 76 65 72 | 61 6c 20 63 6f 6c 6c 65 |Y:.Sever|al colle|
|00001250| 61 67 75 65 73 20 68 61 | 76 65 20 65 78 70 72 65 |agues ha|ve expre|
|00001260| 73 73 65 64 20 69 6e 74 | 65 72 65 73 74 20 69 6e |ssed int|erest in|
|00001270| 20 75 73 69 6e 67 20 74 | 68 69 73 20 73 6f 66 74 | using t|his soft|
|00001280| 77 61 72 65 20 6f 6e 20 | 50 43 73 20 61 6e 64 20 |ware on |PCs and |
|00001290| 53 75 6e 73 2e 20 4d 6f | 73 74 20 6f 66 20 74 68 |Suns. Mo|st of th|
|000012a0| 65 20 72 6f 75 74 69 6e | 65 73 20 61 72 65 20 62 |e routin|es are b|
|000012b0| 75 69 6c 74 20 75 70 6f | 6e 20 51 75 69 63 6b 44 |uilt upo|n QuickD|
|000012c0| 72 61 77 2c 20 61 6e 64 | 20 74 68 65 72 65 66 6f |raw, and| therefo|
|000012d0| 72 65 20 61 72 65 20 6f | 6e 6c 79 20 75 73 65 66 |re are o|nly usef|
|000012e0| 75 6c 20 6f 6e 20 4d 61 | 63 73 2e 20 48 6f 77 65 |ul on Ma|cs. Howe|
|000012f0| 76 65 72 2c 20 73 65 76 | 65 72 61 6c 20 75 73 65 |ver, sev|eral use|
|00001300| 66 75 6c 20 70 61 63 6b | 61 67 65 73 20 75 73 65 |ful pack|ages use|
|00001310| 20 6e 6f 74 68 69 6e 67 | 20 62 75 74 20 73 74 61 | nothing| but sta|
|00001320| 6e 64 61 72 64 20 43 20 | 61 6e 64 20 63 6f 75 6c |ndard C |and coul|
|00001330| 64 20 62 65 20 65 61 73 | 69 6c 79 20 70 6f 72 74 |d be eas|ily port|
|00001340| 65 64 20 74 6f 20 6f 74 | 68 65 72 20 63 6f 6d 70 |ed to ot|her comp|
|00001350| 75 74 65 72 73 3a 20 51 | 75 69 63 6b 33 20 28 4c |uters: Q|uick3 (L|
|00001360| 6f 67 4c 69 6b 65 6c 69 | 68 6f 6f 64 2e 63 2c 20 |ogLikeli|hood.c, |
|00001370| 4d 6f 6e 6f 74 6f 6e 69 | 63 46 69 74 2e 63 2c 20 |Monotoni|cFit.c, |
|00001380| 50 73 79 63 68 6f 6d 65 | 74 72 69 63 46 69 74 2e |Psychome|tricFit.|
|00001390| 63 2c 20 65 74 63 2e 29 | 2c 20 52 65 61 64 41 73 |c, etc.)|, ReadAs|
|000013a0| 73 69 67 6e 6d 65 6e 74 | 73 2e 63 2c 20 56 4c 61 |signment|s.c, VLa|
|000013b0| 6d 62 64 61 2e 63 2c 20 | 61 6e 64 20 61 6c 6c 20 |mbda.c, |and all |
|000013c0| 74 68 65 20 73 74 61 74 | 69 73 74 69 63 61 6c 20 |the stat|istical |
|000013d0| 72 6f 75 74 69 6e 65 73 | 20 28 72 61 6e 64 55 2e |routines| (randU.|
|000013e0| 63 2c 20 6e 72 61 6e 64 | 2e 63 2c 20 42 69 6e 6f |c, nrand|.c, Bino|
|000013f0| 6d 69 61 6c 2e 63 2c 20 | 43 68 69 53 71 75 61 72 |mial.c, |ChiSquar|
|00001400| 65 2e 63 2c 20 4d 65 61 | 6e 2e 63 2c 20 4e 6f 72 |e.c, Mea|n.c, Nor|
|00001410| 6d 61 6c 2e 63 2c 20 53 | 68 75 66 66 6c 65 2e 63 |mal.c, S|huffle.c|
|00001420| 2c 20 55 6e 69 66 6f 72 | 6d 2e 63 29 2e 20 54 68 |, Unifor|m.c). Th|
|00001430| 65 20 6c 75 6d 69 6e 61 | 6e 63 65 2d 63 6f 6e 74 |e lumina|nce-cont|
|00001440| 72 6f 6c 20 73 6f 66 74 | 77 61 72 65 20 69 6e 20 |rol soft|ware in |
|00001450| 4c 75 6d 69 6e 61 6e 63 | 65 2e 63 20 6d 61 6b 65 |Luminanc|e.c make|
|00001460| 73 20 6d 69 6e 69 6d 61 | 6c 20 75 73 65 20 6f 66 |s minima|l use of|
|00001470| 20 47 44 48 61 6e 64 6c | 65 73 20 74 6f 20 64 65 | GDHandl|es to de|
|00001480| 73 69 67 6e 61 74 65 20 | 70 61 72 74 69 63 75 6c |signate |particul|
|00001490| 61 72 20 76 69 64 65 6f | 20 64 65 76 69 63 65 73 |ar video| devices|
|000014a0| 20 61 6e 64 20 6c 6f 61 | 64 20 74 68 65 69 72 20 | and loa|d their |
|000014b0| 63 6c 75 74 73 2c 20 61 | 6e 64 20 63 6f 75 6c 64 |cluts, a|nd could|
|000014c0| 20 62 65 20 65 61 73 69 | 6c 79 20 63 6f 6e 76 65 | be easi|ly conve|
|000014d0| 72 74 65 64 20 74 6f 20 | 77 6f 72 6b 20 77 69 74 |rted to |work wit|
|000014e0| 68 20 73 6f 6d 65 20 6f | 74 68 65 72 20 73 63 68 |h some o|ther sch|
|000014f0| 65 6d 65 20 66 6f 72 20 | 64 65 73 69 67 6e 61 74 |eme for |designat|
|00001500| 69 6e 67 20 76 69 64 65 | 6f 20 64 65 76 69 63 65 |ing vide|o device|
|00001510| 73 20 61 6e 64 20 6c 6f | 61 64 69 6e 67 20 74 68 |s and lo|ading th|
|00001520| 65 69 72 20 63 6c 75 74 | 73 2e 0d 0d 41 6c 6c 20 |eir clut|s...All |
|00001530| 64 65 6d 6f 73 20 63 68 | 65 63 6b 20 66 6f 72 20 |demos ch|eck for |
|00001540| 61 6e 79 20 6e 65 65 64 | 65 64 20 66 61 63 69 6c |any need|ed facil|
|00001550| 69 74 69 65 73 20 28 65 | 2e 67 2e 20 66 70 75 20 |ities (e|.g. fpu |
|00001560| 6f 72 20 63 6f 6c 6f 72 | 20 71 75 69 63 6b 64 72 |or color| quickdr|
|00001570| 61 77 29 2e 20 45 76 65 | 72 79 74 68 69 6e 67 20 |aw). Eve|rything |
|00001580| 68 61 73 20 62 65 65 6e | 20 74 68 6f 72 6f 75 67 |has been| thoroug|
|00001590| 68 6c 79 20 74 65 73 74 | 65 64 20 6f 6e 20 74 68 |hly test|ed on th|
|000015a0| 65 20 4d 61 63 20 49 49 | 20 61 6e 64 20 49 49 63 |e Mac II| and IIc|
|000015b0| 69 2e 20 4c 65 73 73 20 | 65 78 68 61 75 73 74 69 |i. Less |exhausti|
|000015c0| 76 65 20 74 65 73 74 73 | 20 68 61 76 65 20 62 65 |ve tests| have be|
|000015d0| 65 6e 20 6d 61 64 65 20 | 6f 6e 20 74 68 65 20 4d |en made |on the M|
|000015e0| 61 63 20 49 49 73 69 2c | 20 49 49 66 78 2c 20 49 |ac IIsi,| IIfx, I|
|000015f0| 49 20 77 69 74 68 20 61 | 20 52 61 64 69 75 73 20 |I with a| Radius |
|00001600| 52 6f 63 6b 65 74 2c 20 | 51 75 61 64 72 61 20 39 |Rocket, |Quadra 9|
|00001610| 35 30 2c 20 61 6e 64 20 | 50 6f 77 65 72 42 6f 6f |50, and |PowerBoo|
|00001620| 6b 73 20 31 36 30 20 61 | 6e 64 20 31 37 30 2e 20 |ks 160 a|nd 170. |
|00001630| 49 20 65 78 70 65 63 74 | 20 65 76 65 72 79 74 68 |I expect| everyth|
|00001640| 69 6e 67 20 74 6f 20 62 | 65 20 63 6f 6d 70 61 74 |ing to b|e compat|
|00001650| 69 62 6c 65 20 77 69 74 | 68 20 74 68 65 20 4d 61 |ible wit|h the Ma|
|00001660| 63 20 4c 43 2c 20 75 73 | 69 6e 67 20 74 68 65 20 |c LC, us|ing the |
|00001670| 62 75 69 6c 74 2d 69 6e | 20 76 69 64 65 6f 2e 20 |built-in| video. |
|00001680| 54 68 65 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |The rout|ines tha|
|00001690| 74 20 64 6f 6e d5 74 20 | 72 65 71 75 69 72 65 20 |t don.t |require |
|000016a0| 43 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 20 |Color Qu|ickDraw |
|000016b0| 68 61 76 65 20 61 6c 73 | 6f 20 62 65 65 6e 20 74 |have als|o been t|
|000016c0| 65 73 74 65 64 20 6f 6e | 20 74 68 65 20 4d 61 63 |ested on| the Mac|
|000016d0| 20 50 6f 72 74 61 62 6c | 65 2e 0d 0d 43 4f 4d 50 | Portabl|e...COMP|
|000016e0| 49 4c 45 52 20 43 4f 4d | 50 41 54 49 42 49 4c 49 |ILER COM|PATIBILI|
|000016f0| 54 59 3a 0d 49 20 72 65 | 63 6f 6d 6d 65 6e 64 20 |TY:.I re|commend |
|00001700| 74 68 61 74 20 79 6f 75 | 20 75 73 65 20 74 68 65 |that you| use the|
|00001710| 20 6c 61 74 65 73 74 20 | 76 65 72 73 69 6f 6e 20 | latest |version |
|00001720| 6f 66 20 54 48 49 4e 4b | 20 43 2c 20 63 75 72 72 |of THINK| C, curr|
|00001730| 65 6e 74 6c 79 20 35 2e | 30 34 2e 20 49 20 73 75 |ently 5.|04. I su|
|00001740| 67 67 65 73 74 20 79 6f | 75 20 67 65 74 20 61 73 |ggest yo|u get as|
|00001750| 20 6d 75 63 68 20 68 65 | 6c 70 20 61 73 20 79 6f | much he|lp as yo|
|00001760| 75 20 63 61 6e 20 66 72 | 6f 6d 20 74 68 65 20 63 |u can fr|om the c|
|00001770| 6f 6d 70 69 6c 65 72 2c | 20 62 79 20 61 6c 77 61 |ompiler,| by alwa|
|00001780| 79 73 20 65 6e 61 62 6c | 69 6e 67 20 54 48 49 4e |ys enabl|ing THIN|
|00001790| 4b 20 43 d5 73 20 d2 52 | 65 71 75 69 72 65 20 70 |K C.s .R|equire p|
|000017a0| 72 6f 74 6f 74 79 70 65 | 73 d3 20 61 6e 64 20 d2 |rototype|s. and .|
|000017b0| 43 68 65 63 6b 20 70 6f | 69 6e 74 65 72 20 74 79 |Check po|inter ty|
|000017c0| 70 65 73 d3 20 6f 70 74 | 69 6f 6e 73 20 28 75 6e |pes. opt|ions (un|
|000017d0| 64 65 72 20 d2 4c 61 6e | 67 75 61 67 65 20 53 65 |der .Lan|guage Se|
|000017e0| 74 74 69 6e 67 73 d3 29 | 20 61 6e 64 20 d2 5c 70 |ttings.)| and .\p|
|000017f0| 20 69 73 20 75 6e 73 69 | 67 6e 65 64 20 63 68 61 | is unsi|gned cha|
|00001800| 72 20 2a d3 20 28 75 6e | 64 65 72 20 d2 43 6f 6d |r *. (un|der .Com|
|00001810| 70 69 6c 65 72 20 73 65 | 74 74 69 6e 67 73 d3 29 |piler se|ttings.)|
|00001820| 2e 20 49 20 61 6c 73 6f | 20 72 65 63 6f 6d 6d 65 |. I also| recomme|
|00001830| 6e 64 20 75 73 69 6e 67 | 20 54 48 49 4e 4b 20 43 |nd using| THINK C|
|00001840| 27 73 20 75 6e 69 76 65 | 72 73 61 6c 20 66 6c 6f |'s unive|rsal flo|
|00001850| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 66 6f 72 6d |ating po|int form|
|00001860| 61 74 20 28 69 2e 65 2e | 20 64 6f 6e 27 74 20 63 |at (i.e.| don't c|
|00001870| 68 65 63 6b 20 3f 3f 20 | 75 6e 64 65 72 20 d2 43 |heck ?? |under .C|
|00001880| 6f 6d 70 69 6c 65 72 20 | 73 65 74 74 69 6e 67 73 |ompiler |settings|
|00001890| d3 29 2c 20 62 65 63 61 | 75 73 65 20 69 74 20 61 |.), beca|use it a|
|000018a0| 6c 6c 6f 77 73 20 61 6c | 6c 20 79 6f 75 72 20 70 |llows al|l your p|
|000018b0| 72 6f 6a 65 63 74 73 2c | 20 77 68 65 74 68 65 72 |rojects,| whether|
|000018c0| 20 6f 72 20 6e 6f 74 20 | 74 68 65 79 20 75 73 65 | or not |they use|
|000018d0| 20 74 68 65 20 36 38 38 | 38 31 2c 20 74 6f 20 75 | the 688|81, to u|
|000018e0| 73 65 20 74 68 65 20 73 | 61 6d 65 20 41 4e 53 49 |se the s|ame ANSI|
|000018f0| 20 6c 69 62 72 61 72 79 | 20 61 6e 64 20 70 72 65 | library| and pre|
|00001900| 63 6f 6d 70 69 6c 65 64 | 20 68 65 61 64 65 72 2c |compiled| header,|
|00001910| 20 61 6e 64 20 74 68 65 | 20 73 70 65 65 64 20 61 | and the| speed a|
|00001920| 6e 64 20 73 70 61 63 65 | 20 70 65 6e 61 6c 74 79 |nd space| penalty|
|00001930| 20 69 73 20 76 65 72 79 | 20 73 6d 61 6c 6c 2e 0d | is very| small..|
|00001940| 0d 41 6c 6c 20 74 68 65 | 20 70 72 6f 67 72 61 6d |.All the| program|
|00001950| 73 20 69 6e 20 74 68 65 | 20 56 69 64 65 6f 54 6f |s in the| VideoTo|
|00001960| 6f 6c 62 6f 78 20 61 72 | 65 20 63 6f 6d 70 61 74 |olbox ar|e compat|
|00001970| 69 62 6c 65 20 77 69 74 | 68 20 54 48 49 4e 4b 20 |ible wit|h THINK |
|00001980| 43 20 35 2e 30 34 2c 20 | 62 75 74 2c 20 77 69 74 |C 5.04, |but, wit|
|00001990| 68 20 6f 6e 6c 79 20 74 | 68 72 65 65 20 65 78 63 |h only t|hree exc|
|000019a0| 65 70 74 69 6f 6e 73 20 | 28 53 65 74 45 6e 74 72 |eptions |(SetEntr|
|000019b0| 69 65 73 51 75 69 63 6b | 6c 79 2e 63 2c 20 6b 62 |iesQuick|ly.c, kb|
|000019c0| 68 69 74 2e 63 2c 20 61 | 6e 64 20 43 6f 70 79 42 |hit.c, a|nd CopyB|
|000019d0| 69 74 73 51 75 69 63 6b | 6c 79 2e 63 29 20 64 6f |itsQuick|ly.c) do|
|000019e0| 20 6e 6f 74 20 75 73 65 | 20 61 6e 79 20 66 65 61 | not use| any fea|
|000019f0| 74 75 72 65 73 20 75 6e | 69 71 75 65 20 74 6f 20 |tures un|ique to |
|00001a00| 74 68 65 20 54 48 49 4e | 4b 20 63 6f 6d 70 69 6c |the THIN|K compil|
|00001a10| 65 72 2e 20 53 65 74 45 | 6e 74 72 69 65 73 51 75 |er. SetE|ntriesQu|
|00001a20| 69 63 6b 6c 79 2e 63 20 | 61 6e 64 20 6b 62 68 69 |ickly.c |and kbhi|
|00001a30| 74 2e 63 20 72 65 71 75 | 69 72 65 20 54 48 49 4e |t.c requ|ire THIN|
|00001a40| 4b 20 43 2e 20 43 6f 70 | 79 42 69 74 73 51 75 69 |K C. Cop|yBitsQui|
|00001a50| 63 6b 6c 79 2e 63 20 67 | 65 6e 65 72 61 74 65 73 |ckly.c g|enerates|
|00001a60| 20 73 6c 6f 77 65 72 20 | 63 6f 64 65 20 77 68 65 | slower |code whe|
|00001a70| 6e 20 63 6f 6d 70 69 6c | 65 64 20 62 79 20 4d 50 |n compil|ed by MP|
|00001a80| 57 20 43 20 74 68 61 6e | 20 77 68 65 6e 20 63 6f |W C than| when co|
|00001a90| 6d 70 69 6c 65 64 20 62 | 79 20 54 48 49 4e 4b 20 |mpiled b|y THINK |
|00001aa0| 43 2e 20 0d 0d 54 68 65 | 20 53 79 6d 61 6e 74 65 |C. ..The| Symante|
|00001ab0| 63 20 54 48 49 4e 4b 20 | 43 20 61 6e 64 20 41 70 |c THINK |C and Ap|
|00001ac0| 70 6c 65 20 4d 50 57 20 | 43 20 63 6f 6d 70 69 6c |ple MPW |C compil|
|00001ad0| 65 72 73 20 68 61 76 65 | 20 74 77 6f 20 69 6d 70 |ers have| two imp|
|00001ae0| 6f 72 74 61 6e 74 20 64 | 69 66 66 65 72 65 6e 63 |ortant d|ifferenc|
|00001af0| 65 73 2e 20 0d 31 2e 20 | 54 48 49 4e 4b 20 43 20 |es. .1. |THINK C |
|00001b00| 68 61 73 20 61 20 75 6e | 69 71 75 65 20 73 63 68 |has a un|ique sch|
|00001b10| 65 6d 65 20 66 6f 72 20 | 69 6e 63 6c 75 64 69 6e |eme for |includin|
|00001b20| 67 20 61 73 73 65 6d 62 | 6c 79 20 63 6f 64 65 20 |g assemb|ly code |
|00001b30| 69 6e 20 74 68 65 20 6d | 69 64 64 6c 65 20 6f 66 |in the m|iddle of|
|00001b40| 20 61 20 43 20 70 72 6f | 67 72 61 6d 2e 20 28 55 | a C pro|gram. (U|
|00001b50| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 41 4e |nfortuna|tely, AN|
|00001b60| 53 49 20 43 20 64 6f 65 | 73 20 6e 6f 74 20 73 70 |SI C doe|s not sp|
|00001b70| 65 63 69 66 79 20 61 20 | 73 74 61 6e 64 61 72 64 |ecify a |standard|
|00001b80| 20 77 61 79 20 74 6f 20 | 64 6f 20 74 68 69 73 2e | way to |do this.|
|00001b90| 29 20 4d 50 57 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 |) MPW wi|ll only |
|00001ba0| 61 6c 6c 6f 77 20 6d 61 | 63 68 69 6e 65 20 63 6f |allow ma|chine co|
|00001bb0| 64 65 20 28 69 2e 65 2e | 20 6e 75 6d 62 65 72 73 |de (i.e.| numbers|
|00001bc0| 29 2e 20 54 68 69 73 20 | 61 66 66 65 63 74 73 20 |). This |affects |
|00001bd0| 43 6f 70 79 42 69 74 73 | 51 75 69 63 6b 6c 79 20 |CopyBits|Quickly |
|00001be0| 61 6e 64 20 53 65 74 45 | 6e 74 72 69 65 73 51 75 |and SetE|ntriesQu|
|00001bf0| 69 63 6b 6c 79 2e 20 43 | 6f 70 79 42 69 74 73 51 |ickly. C|opyBitsQ|
|00001c00| 75 69 63 6b 6c 79 20 64 | 6f 65 73 20 63 6f 6d 70 |uickly d|oes comp|
|00001c10| 69 6c 65 20 75 6e 64 65 | 72 20 4d 50 57 20 43 2c |ile unde|r MPW C,|
|00001c20| 20 62 75 74 20 77 6f 6e | d5 74 20 62 65 20 71 75 | but won|.t be qu|
|00001c30| 69 74 65 20 61 73 20 66 | 61 73 74 2e 0d 32 2e 20 |ite as f|ast..2. |
|00001c40| 42 79 20 64 65 66 61 75 | 6c 74 2c 20 4d 50 57 20 |By defau|lt, MPW |
|00001c50| 74 72 65 61 74 73 20 d2 | 69 6e 74 d3 20 61 73 20 |treats .|int. as |
|00001c60| 6c 6f 6e 67 2c 20 77 68 | 65 72 65 61 73 20 54 48 |long, wh|ereas TH|
|00001c70| 49 4e 4b 20 74 72 65 61 | 74 73 20 d2 69 6e 74 d3 |INK trea|ts .int.|
|00001c80| 20 61 73 20 73 68 6f 72 | 74 2e 20 28 49 74 d5 73 | as shor|t. (It.s|
|00001c90| 20 61 20 63 6f 6d 70 69 | 6c 65 2d 74 69 6d 65 20 | a compi|le-time |
|00001ca0| 6f 70 74 69 6f 6e 2e 29 | 20 57 68 65 6e 20 69 74 |option.)| When it|
|00001cb0| 20 6d 61 74 74 65 72 73 | 2c 20 79 6f 75 20 73 68 | matters|, you sh|
|00001cc0| 6f 75 6c 64 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |ould exp|licitly |
|00001cd0| 64 65 63 6c 61 72 65 20 | 79 6f 75 72 20 76 61 72 |declare |your var|
|00001ce0| 69 61 62 6c 65 73 20 61 | 73 20 d2 73 68 6f 72 74 |iables a|s .short|
|00001cf0| d3 20 6f 72 20 d2 6c 6f | 6e 67 d3 20 72 61 74 68 |. or .lo|ng. rath|
|00001d00| 65 72 20 74 68 61 6e 20 | 6a 75 73 74 20 d2 69 6e |er than |just .in|
|00001d10| 74 d3 2e 0d 0d 53 59 53 | 54 45 4d 20 43 4f 4d 50 |t....SYS|TEM COMP|
|00001d20| 41 54 49 42 49 4c 49 54 | 59 3a 0d 49 6e 20 67 65 |ATIBILIT|Y:.In ge|
|00001d30| 6e 65 72 61 6c 2c 20 49 | 20 72 65 63 6f 6d 6d 65 |neral, I| recomme|
|00001d40| 6e 64 20 75 73 69 6e 67 | 20 74 68 65 20 6c 61 74 |nd using| the lat|
|00001d50| 65 73 74 20 53 79 73 74 | 65 6d 20 73 6f 66 74 77 |est Syst|em softw|
|00001d60| 61 72 65 2c 20 63 75 72 | 72 65 6e 74 6c 79 20 53 |are, cur|rently S|
|00001d70| 79 73 74 65 6d 20 37 2e | 31 2e 20 45 76 65 72 79 |ystem 7.|1. Every|
|00001d80| 74 68 69 6e 67 20 72 75 | 6e 73 20 66 69 6e 65 20 |thing ru|ns fine |
|00001d90| 75 6e 64 65 72 20 53 79 | 73 74 65 6d 73 20 36 20 |under Sy|stems 6 |
|00001da0| 61 6e 64 20 37 2c 20 61 | 6e 64 20 69 73 20 63 6f |and 7, a|nd is co|
|00001db0| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 33 32 |mpatible| with 32|
|00001dc0| 2d 62 69 74 20 6d 6f 64 | 65 20 61 6e 64 20 76 69 |-bit mod|e and vi|
|00001dd0| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 2e 20 4e 6f |rtual me|mory. No|
|00001de0| 6e 65 20 6f 66 20 74 68 | 65 73 65 20 70 72 6f 67 |ne of th|ese prog|
|00001df0| 72 61 6d 73 20 61 72 65 | 20 d2 4d 75 6c 74 69 46 |rams are| .MultiF|
|00001e00| 69 6e 64 65 72 20 66 72 | 69 65 6e 64 6c 79 d3 2e |inder fr|iendly..|
|00001e10| 20 54 68 65 79 d5 72 65 | 20 63 6f 6d 70 61 74 69 | They.re| compati|
|00001e20| 62 6c 65 20 77 69 74 68 | 20 4d 75 6c 74 69 46 69 |ble with| MultiFi|
|00001e30| 6e 64 65 72 2c 20 62 75 | 74 20 74 68 65 79 20 61 |nder, bu|t they a|
|00001e40| 6c 6c 20 68 6f 67 20 74 | 68 65 20 6d 61 63 68 69 |ll hog t|he machi|
|00001e50| 6e 65 2c 20 77 68 69 63 | 68 20 49 20 74 68 69 6e |ne, whic|h I thin|
|00001e60| 6b 20 69 73 20 70 65 72 | 66 65 63 74 6c 79 20 70 |k is per|fectly p|
|00001e70| 72 6f 70 65 72 20 66 6f | 72 20 65 78 70 65 72 69 |roper fo|r experi|
|00001e80| 6d 65 6e 74 73 2e 20 28 | 49 74 20 77 6f 75 6c 64 |ments. (|It would|
|00001e90| 20 62 65 20 65 61 73 79 | 20 74 6f 20 6d 61 6b 65 | be easy| to make|
|00001ea0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 73 20 70 6f | the pro|grams po|
|00001eb0| 6c 69 74 65 2c 20 69 66 | 20 79 6f 75 20 77 61 6e |lite, if| you wan|
|00001ec0| 74 20 74 6f 20 64 6f 20 | 74 68 61 74 2c 20 62 79 |t to do |that, by|
|00001ed0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 41 70 70 6c 65 | followi|ng Apple|
|00001ee0| d5 73 20 67 75 69 64 65 | 6c 69 6e 65 73 20 66 6f |.s guide|lines fo|
|00001ef0| 72 20 75 73 69 6e 67 20 | 57 61 69 74 4e 65 78 74 |r using |WaitNext|
|00001f00| 45 76 65 6e 74 28 29 20 | 69 6e 20 74 68 65 20 4e |Event() |in the N|
|00001f10| 65 77 20 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |ew Insid|e Macint|
|00001f20| 6f 73 68 3a 20 4d 65 6d | 6f 72 79 20 62 6f 6f 6b |osh: Mem|ory book|
|00001f30| 29 0d 0d 56 49 44 45 4f | 20 43 41 52 44 20 43 4f |)..VIDEO| CARD CO|
|00001f40| 4d 50 41 54 49 42 49 4c | 49 54 59 3a 0d 41 6c 6c |MPATIBIL|ITY:.All|
|00001f50| 20 76 69 64 65 6f 20 63 | 61 72 64 73 20 74 68 61 | video c|ards tha|
|00001f60| 74 20 70 6c 75 67 20 69 | 6e 74 6f 20 74 68 65 20 |t plug i|nto the |
|00001f70| 4d 61 63 20 63 6f 6d 65 | 20 77 69 74 68 20 76 69 |Mac come| with vi|
|00001f80| 64 65 6f 20 64 72 69 76 | 65 72 73 20 74 68 61 74 |deo driv|ers that|
|00001f90| 20 63 6f 6e 66 6f 72 6d | 20 73 75 66 66 69 63 69 | conform| suffici|
|00001fa0| 65 6e 74 6c 79 20 77 65 | 6c 6c 20 74 6f 20 74 68 |ently we|ll to th|
|00001fb0| 65 20 41 70 70 6c 65 20 | 67 75 69 64 65 6c 69 6e |e Apple |guidelin|
|00001fc0| 65 73 20 74 68 61 74 20 | 74 68 65 79 20 61 72 65 |es that |they are|
|00001fd0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|00001fe0| 20 74 68 65 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f | the Vid|eoToolbo|
|00001ff0| 78 2c 20 62 75 74 20 74 | 68 65 79 20 6d 61 79 20 |x, but t|hey may |
|00002000| 62 65 20 6d 75 63 68 20 | 73 6c 6f 77 65 72 20 74 |be much |slower t|
|00002010| 68 61 6e 20 79 6f 75 27 | 64 20 67 75 65 73 73 2e |han you'|d guess.|
|00002020| 20 54 68 69 73 20 69 73 | 20 64 69 73 63 75 73 73 | This is| discuss|
|00002030| 65 64 20 69 6e 20 61 20 | 73 65 70 61 72 61 74 65 |ed in a |separate|
|00002040| 20 66 69 6c 65 2c 20 d2 | 56 69 64 65 6f 20 73 79 | file, .|Video sy|
|00002050| 6e 63 68 d3 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |nch.. Yo|u should|
|00002060| 20 63 68 65 63 6b 20 6f | 75 74 20 79 6f 75 72 20 | check o|ut your |
|00002070| 76 69 64 65 6f 20 64 72 | 69 76 65 72 73 20 62 79 |video dr|ivers by|
|00002080| 20 72 75 6e 6e 69 6e 67 | 20 74 68 65 20 73 65 6c | running| the sel|
|00002090| 66 2d 65 78 70 6c 61 6e | 61 74 6f 72 79 20 64 65 |f-explan|atory de|
|000020a0| 6d 6f 20 54 69 6d 65 56 | 69 64 65 6f 2e 20 28 59 |mo TimeV|ideo. (Y|
|000020b0| 6f 75 20 6d 61 79 20 61 | 6c 73 6f 20 77 61 6e 74 |ou may a|lso want|
|000020c0| 20 74 6f 20 74 72 79 20 | 74 68 65 20 6d 6f 72 65 | to try |the more|
|000020d0| 20 61 72 63 61 6e 65 20 | 64 65 6d 6f 20 54 65 73 | arcane |demo Tes|
|000020e0| 74 47 44 56 69 64 65 6f | 2c 20 77 68 69 63 68 20 |tGDVideo|, which |
|000020f0| 61 73 73 75 6d 65 73 20 | 61 20 6b 6e 6f 77 6c 65 |assumes |a knowle|
|00002100| 64 67 65 20 6f 66 20 41 | 70 70 6c 65 27 73 20 44 |dge of A|pple's D|
|00002110| 65 73 69 67 6e 69 6e 67 | 20 43 61 72 64 73 20 61 |esigning| Cards a|
|00002120| 6e 64 20 44 72 69 76 65 | 72 73 20 62 6f 6f 6b 2e |nd Drive|rs book.|
|00002130| 29 0d 0d 43 4f 4e 54 45 | 4e 54 53 20 4f 46 20 54 |)..CONTE|NTS OF T|
|00002140| 48 45 20 56 49 44 45 4f | 54 4f 4f 4c 42 4f 58 20 |HE VIDEO|TOOLBOX |
|00002150| 44 49 53 4b 3a 0d 0d a5 | 52 65 61 64 20 6d 65 d1 |DISK:...|Read me.|
|00002160| 74 68 69 73 20 66 69 6c | 65 2e 0d a5 43 68 61 6e |this fil|e...Chan|
|00002170| 67 65 73 d1 63 68 72 6f | 6e 6f 6c 6f 67 69 63 61 |ges.chro|nologica|
|00002180| 6c 20 6c 69 73 74 20 6f | 66 20 61 64 64 69 74 69 |l list o|f additi|
|00002190| 6f 6e 73 20 61 6e 64 20 | 62 75 67 20 66 69 78 65 |ons and |bug fixe|
|000021a0| 73 2e 0d a5 41 64 76 69 | 63 65 d1 6c 69 73 74 20 |s...Advi|ce.list |
|000021b0| 6f 66 20 62 6f 6f 6b 73 | 20 26 20 73 6f 66 74 77 |of books| & softw|
|000021c0| 61 72 65 20 74 6f 20 68 | 65 6c 70 20 69 6e 20 70 |are to h|elp in p|
|000021d0| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 76 69 73 69 6f |rogrammi|ng visio|
|000021e0| 6e 20 65 78 70 65 72 69 | 6d 65 6e 74 73 2e 0d a5 |n experi|ments...|
|000021f0| 56 69 64 65 6f 20 73 79 | 6e 63 68 2d 65 78 70 6c |Video sy|nch-expl|
|00002200| 61 69 6e 73 20 68 6f 77 | 20 74 6f 20 73 79 6e 63 |ains how| to sync|
|00002210| 68 72 6f 6e 69 7a 65 20 | 61 20 70 72 6f 67 72 61 |hronize |a progra|
|00002220| 6d 20 74 6f 20 61 20 76 | 69 64 65 6f 20 63 61 72 |m to a v|ideo car|
|00002230| 64 2e 0d a5 56 69 64 65 | 6f 20 41 74 74 65 6e 75 |d...Vide|o Attenu|
|00002240| 61 74 6f 72 d1 6f 72 64 | 65 72 69 6e 67 20 61 6e |ator.ord|ering an|
|00002250| 64 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 20 69 |d instal|lation i|
|00002260| 6e 73 74 72 75 63 74 69 | 6f 6e 73 2e 0d a5 56 69 |nstructi|ons...Vi|
|00002270| 64 65 6f 54 6f 6f 6c 62 | 6f 78 53 6f 75 72 63 65 |deoToolb|oxSource|
|00002280| 73 d1 61 20 66 6f 6c 64 | 65 72 20 63 6f 6e 74 61 |s.a fold|er conta|
|00002290| 69 6e 69 6e 67 20 6d 61 | 6e 79 20 75 73 65 66 75 |ining ma|ny usefu|
|000022a0| 6c 20 73 75 62 72 6f 75 | 74 69 6e 65 73 2e 20 49 |l subrou|tines. I|
|000022b0| 20 73 75 67 67 65 73 74 | 20 74 68 61 74 20 79 6f | suggest| that yo|
|000022c0| 75 20 70 75 74 20 74 68 | 65 20 65 6e 74 69 72 65 |u put th|e entire|
|000022d0| 20 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 20 66 6f | VideoTo|olbox fo|
|000022e0| 6c 64 65 72 20 69 6e 73 | 69 64 65 20 79 6f 75 72 |lder ins|ide your|
|000022f0| 20 54 48 49 4e 4b 20 43 | 20 66 6f 6c 64 65 72 2e | THINK C| folder.|
|00002300| 20 28 4f 72 20 61 74 20 | 6c 65 61 73 74 20 70 75 | (Or at |least pu|
|00002310| 74 20 74 68 65 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |t the Vi|deoToolb|
|00002320| 6f 78 53 6f 75 72 63 65 | 73 20 66 6f 6c 64 65 72 |oxSource|s folder|
|00002330| 20 74 68 65 72 65 2e 29 | 20 54 68 61 74 20 77 69 | there.)| That wi|
|00002340| 6c 6c 20 6d 61 6b 65 20 | 69 74 20 65 61 73 69 65 |ll make |it easie|
|00002350| 72 20 66 6f 72 20 79 6f | 75 72 20 70 72 6f 6a 65 |r for yo|ur proje|
|00002360| 63 74 73 20 74 6f 20 61 | 63 63 65 73 73 20 74 68 |cts to a|ccess th|
|00002370| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 20 77 69 74 |ese rout|ines wit|
|00002380| 68 6f 75 74 20 68 61 76 | 69 6e 67 20 74 6f 20 63 |hout hav|ing to c|
|00002390| 6f 70 79 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |opy the |routines|
|000023a0| 20 69 6e 74 6f 20 65 61 | 63 68 20 6f 66 20 79 6f | into ea|ch of yo|
|000023b0| 75 72 20 70 72 6f 6a 65 | 63 74 d5 73 20 66 6f 6c |ur proje|ct.s fol|
|000023c0| 64 65 72 73 2e 20 49 74 | 20 77 69 6c 6c 20 61 6c |ders. It| will al|
|000023d0| 73 6f 20 6d 61 6b 65 20 | 69 74 20 6d 75 63 68 20 |so make |it much |
|000023e0| 65 61 73 69 65 72 20 74 | 6f 20 75 70 64 61 74 65 |easier t|o update|
|000023f0| 20 74 68 65 6d 2c 20 73 | 69 6e 63 65 20 61 6c 6c | them, s|ince all|
|00002400| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 73 20 77 | your pr|ograms w|
|00002410| 69 6c 6c 20 73 68 61 72 | 65 20 74 68 65 20 73 61 |ill shar|e the sa|
|00002420| 6d 65 20 63 6f 70 79 2e | 0d a5 44 65 6d 6f 73 d1 |me copy.|..Demos.|
|00002430| 61 20 66 6f 6c 64 65 72 | 20 63 6f 6e 74 61 69 6e |a folder| contain|
|00002440| 69 6e 67 20 61 20 76 61 | 72 69 65 74 79 20 6f 66 |ing a va|riety of|
|00002450| 20 72 65 61 64 79 2d 74 | 6f 2d 72 75 6e 20 61 70 | ready-t|o-run ap|
|00002460| 70 6c 69 63 61 74 69 6f | 6e 73 20 64 65 6d 6f 6e |plicatio|ns demon|
|00002470| 73 74 72 61 74 69 6e 67 | 20 76 61 72 69 6f 75 73 |strating| various|
|00002480| 20 66 65 61 74 75 72 65 | 73 20 6f 66 20 74 68 65 | feature|s of the|
|00002490| 20 74 6f 6f 6c 62 6f 78 | 20 73 6f 66 74 77 61 72 | toolbox| softwar|
|000024a0| 65 2e 20 53 6f 75 72 63 | 65 73 20 61 72 65 20 69 |e. Sourc|es are i|
|000024b0| 6e 63 6c 75 64 65 64 2e | 20 49 20 73 74 72 6f 6e |ncluded.| I stron|
|000024c0| 67 6c 79 20 72 65 63 6f | 6d 6d 65 6e 64 20 74 68 |gly reco|mmend th|
|000024d0| 61 74 20 79 6f 75 20 72 | 75 6e 20 54 69 6d 65 56 |at you r|un TimeV|
|000024e0| 69 64 65 6f 2e 0d a5 55 | 74 69 6c 69 74 69 65 73 |ideo...U|tilities|
|000024f0| d1 61 20 66 6f 6c 64 65 | 72 20 63 6f 6e 74 61 69 |.a folde|r contai|
|00002500| 6e 69 6e 67 20 43 61 6c | 69 62 72 61 74 65 4c 75 |ning Cal|ibrateLu|
|00002510| 6d 69 6e 61 6e 63 65 20 | 61 6e 64 20 6f 74 68 65 |minance |and othe|
|00002520| 72 20 75 73 65 66 75 6c | 20 72 65 61 64 79 2d 74 |r useful| ready-t|
|00002530| 6f 2d 72 75 6e 20 70 72 | 6f 6a 65 63 74 73 2e 0d |o-run pr|ojects..|
|00002540| a5 4e 6f 74 65 73 d1 69 | 6d 70 72 6f 76 65 6d 65 |.Notes.i|mproveme|
|00002550| 6e 74 73 20 74 6f 20 54 | 48 49 4e 4b 20 43 20 61 |nts to T|HINK C a|
|00002560| 6e 64 20 4e 75 6d 65 72 | 69 63 61 6c 20 52 65 63 |nd Numer|ical Rec|
|00002570| 69 70 65 73 2c 20 64 6f | 63 75 6d 65 6e 74 61 74 |ipes, do|cumentat|
|00002580| 69 6f 6e 20 66 6f 72 20 | 4c 75 6d 69 6e 61 6e 63 |ion for |Luminanc|
|00002590| 65 2e 63 2c 20 61 6e 64 | 20 65 78 70 6c 61 6e 61 |e.c, and| explana|
|000025a0| 74 69 6f 6e 73 20 6f 66 | 20 76 69 64 65 6f 20 61 |tions of| video a|
|000025b0| 72 63 61 6e 61 20 63 6f | 6c 6c 65 63 74 65 64 20 |rcana co|llected |
|000025c0| 66 72 6f 6d 20 76 61 72 | 69 6f 75 73 20 73 6f 75 |from var|ious sou|
|000025d0| 72 63 65 73 2e 0d a5 41 | 6c 6c 20 53 6f 75 72 63 |rces...A|ll Sourc|
|000025e0| 65 73 2e b9 20 69 73 20 | 61 20 70 72 6f 6a 65 63 |es.. is |a projec|
|000025f0| 74 20 66 69 6c 65 20 74 | 68 61 74 20 61 6c 6c 6f |t file t|hat allo|
|00002600| 77 73 20 79 6f 75 72 20 | 74 6f 20 62 72 6f 77 73 |ws your |to brows|
|00002610| 65 20 74 68 72 6f 75 67 | 68 20 61 6c 6c 20 74 68 |e throug|h all th|
|00002620| 65 20 73 6f 75 72 63 65 | 73 20 69 6e 20 74 68 65 |e source|s in the|
|00002630| 20 65 6e 74 69 72 65 20 | 56 69 64 65 6f 54 6f 6f | entire |VideoToo|
|00002640| 6c 62 6f 78 20 64 69 73 | 6b 2c 20 69 6e 63 6c 75 |lbox dis|k, inclu|
|00002650| 64 69 6e 67 20 64 65 6d | 6f 73 20 61 6e 64 20 75 |ding dem|os and u|
|00002660| 74 69 6c 69 74 69 65 73 | 2e 20 44 6f 75 62 6c 65 |tilities|. Double|
|00002670| 20 63 6c 69 63 6b 20 74 | 68 65 20 70 72 6f 6a 65 | click t|he proje|
|00002680| 63 74 20 74 6f 20 73 74 | 61 72 74 20 75 70 20 54 |ct to st|art up T|
|00002690| 48 49 4e 4b 20 43 2c 20 | 74 68 65 6e 20 64 6f 75 |HINK C, |then dou|
|000026a0| 62 6c 65 20 63 6c 69 63 | 6b 20 74 68 65 20 6e 61 |ble clic|k the na|
|000026b0| 6d 65 20 6f 66 20 61 6e | 79 20 73 6f 75 72 63 65 |me of an|y source|
|000026c0| 20 66 69 6c 65 20 79 6f | 75 20 77 61 6e 74 20 74 | file yo|u want t|
|000026d0| 6f 20 65 78 61 6d 69 6e | 65 2e 0d 0d 43 4f 4e 54 |o examin|e...CONT|
|000026e0| 45 4e 54 53 20 4f 46 20 | 55 74 69 6c 69 74 69 65 |ENTS OF |Utilitie|
|000026f0| 73 20 46 4f 4c 44 45 52 | 3a 0d 0d 43 61 6c 69 62 |s FOLDER|:..Calib|
|00002700| 72 61 74 65 4c 75 6d 69 | 6e 61 6e 63 65 20 68 65 |rateLumi|nance he|
|00002710| 6c 70 73 20 79 6f 75 20 | 74 6f 20 6d 65 61 73 75 |lps you |to measu|
|00002720| 72 65 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |re the p|arameter|
|00002730| 73 20 6f 66 20 79 6f 75 | 72 20 76 69 64 65 6f 20 |s of you|r video |
|00002740| 63 61 72 64 2c 20 49 53 | 52 20 56 69 64 65 6f 20 |card, IS|R Video |
|00002750| 41 74 74 65 6e 75 61 74 | 6f 72 2c 20 61 6e 64 20 |Attenuat|or, and |
|00002760| 6d 6f 6e 69 74 6f 72 2e | 20 59 6f 75 20 77 69 6c |monitor.| You wil|
|00002770| 6c 20 6e 65 65 64 20 61 | 20 70 68 6f 74 6f 6d 65 |l need a| photome|
|00002780| 74 65 72 2e 20 43 61 6c | 69 62 72 61 74 65 4c 75 |ter. Cal|ibrateLu|
|00002790| 6d 69 6e 61 6e 63 65 20 | 77 69 6c 6c 20 75 73 65 |minance |will use|
|000027a0| 20 61 20 44 61 74 61 20 | 54 72 61 6e 73 6c 61 74 | a Data |Translat|
|000027b0| 69 6f 6e 20 46 4f 52 45 | 52 55 4e 4e 45 52 20 41 |ion FORE|RUNNER A|
|000027c0| 2f 44 20 63 61 72 64 20 | 69 66 20 79 6f 75 20 68 |/D card |if you h|
|000027d0| 61 76 65 20 6f 6e 65 2e | 20 41 6c 6c 20 74 68 65 |ave one.| All the|
|000027e0| 20 72 65 73 75 6c 74 73 | 20 61 72 65 20 73 74 6f | results| are sto|
|000027f0| 72 65 64 20 69 6e 20 61 | 20 d2 68 65 61 64 65 72 |red in a| .header|
|00002800| d3 20 66 69 6c 65 20 63 | 61 6c 6c 65 64 20 4c 75 |. file c|alled Lu|
|00002810| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 3f 2e 68 |minanceR|ecord?.h|
|00002820| 2c 20 77 68 65 72 65 20 | 3f 20 73 74 61 6e 64 73 |, where |? stands|
|00002830| 20 66 6f 72 20 74 68 65 | 20 73 63 72 65 65 6e 20 | for the| screen |
|00002840| 6e 75 6d 62 65 72 2e 20 | 59 6f 75 20 63 61 6e 20 |number. |You can |
|00002850| 74 68 65 6e 20 23 69 6e | 63 6c 75 64 65 20 74 68 |then #in|clude th|
|00002860| 69 73 20 66 69 6c 65 20 | 28 61 74 20 63 6f 6d 70 |is file |(at comp|
|00002870| 69 6c 65 20 74 69 6d 65 | 29 20 6f 72 20 52 65 61 |ile time|) or Rea|
|00002880| 64 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |dLuminan|ceRecord|
|00002890| 20 28 61 74 20 72 75 6e | 20 74 69 6d 65 29 20 69 | (at run| time) i|
|000028a0| 6e 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 2e |n your p|rograms.|
|000028b0| 0d 0d 43 68 65 63 6b 43 | 6f 6e 74 72 61 73 74 20 |..CheckC|ontrast |
|000028c0| 64 6f 65 73 20 61 20 72 | 69 67 6f 72 6f 75 73 20 |does a r|igorous |
|000028d0| 74 65 73 74 69 6e 67 20 | 6f 66 20 74 68 65 20 50 |testing |of the P|
|000028e0| 65 6c 6c 69 20 26 20 5a | 68 61 6e 67 20 28 31 39 |elli & Z|hang (19|
|000028f0| 39 31 29 20 61 6c 67 6f | 72 69 74 68 6d 73 20 74 |91) algo|rithms t|
|00002900| 68 61 74 20 75 6e 64 65 | 72 6c 69 65 20 74 68 65 |hat unde|rlie the|
|00002910| 20 49 53 52 20 56 69 64 | 65 6f 20 61 74 74 65 6e | ISR Vid|eo atten|
|00002920| 75 61 74 6f 72 20 61 6e | 64 20 74 68 65 20 4c 75 |uator an|d the Lu|
|00002930| 6d 69 6e 61 6e 63 65 2e | 63 20 73 6f 66 74 77 61 |minance.|c softwa|
|00002940| 72 65 2e 20 59 6f 75 20 | 6d 69 67 68 74 20 66 69 |re. You |might fi|
|00002950| 6e 64 20 69 74 20 75 73 | 65 66 75 6c 20 69 66 20 |nd it us|eful if |
|00002960| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 74 65 73 74 |you want| to test|
|00002970| 20 79 6f 75 72 20 49 53 | 52 20 56 69 64 65 6f 20 | your IS|R Video |
|00002980| 41 74 74 65 6e 75 61 74 | 6f 72 20 61 6e 64 20 4c |Attenuat|or and L|
|00002990| 75 6d 69 6e 61 6e 63 65 | 2e 63 2e 0d 0d 4d 65 61 |uminance|.c...Mea|
|000029a0| 73 75 72 65 4d 54 46 20 | 6d 65 61 73 75 72 65 73 |sureMTF |measures|
|000029b0| 20 79 6f 75 72 20 76 69 | 64 65 6f 20 6d 6f 6e 69 | your vi|deo moni|
|000029c0| 74 6f 72 27 73 20 4d 6f | 64 75 6c 61 74 69 6f 6e |tor's Mo|dulation|
|000029d0| 20 54 72 61 6e 73 66 65 | 72 20 46 75 6e 63 74 69 | Transfe|r Functi|
|000029e0| 6f 6e 2c 20 69 2e 65 2e | 20 63 6f 6e 74 72 61 73 |on, i.e.| contras|
|000029f0| 74 20 67 61 69 6e 20 61 | 73 20 61 20 66 75 6e 63 |t gain a|s a func|
|00002a00| 74 69 6f 6e 20 6f 66 20 | 73 70 61 74 69 61 6c 20 |tion of |spatial |
|00002a10| 66 72 65 71 75 65 6e 63 | 79 2e 0d 0d 51 75 69 63 |frequenc|y...Quic|
|00002a20| 6b 33 20 69 73 20 61 20 | 73 65 74 20 6f 66 20 73 |k3 is a |set of s|
|00002a30| 75 62 72 6f 75 74 69 6e | 65 73 20 61 6e 64 20 61 |ubroutin|es and a|
|00002a40| 20 6d 61 69 6e 20 70 72 | 6f 67 72 61 6d 20 74 6f | main pr|ogram to|
|00002a50| 20 66 69 74 20 70 73 79 | 63 68 6f 6d 65 74 72 69 | fit psy|chometri|
|00002a60| 63 20 66 75 6e 63 74 69 | 6f 6e 73 2e 20 49 74 20 |c functi|ons. It |
|00002a70| 69 73 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 3a |is descr|ibed in:|
|00002a80| 20 57 61 74 73 6f 6e 2c | 20 41 2e 20 42 2e 20 61 | Watson,| A. B. a|
|00002a90| 6e 64 20 50 65 6c 6c 69 | 2c 20 44 2e 20 47 2e 20 |nd Pelli|, D. G. |
|00002aa0| 28 31 39 38 33 29 20 51 | 55 45 53 54 3a 20 61 20 |(1983) Q|UEST: a |
|00002ab0| 42 61 79 65 73 69 61 6e | 20 61 64 61 70 74 69 76 |Bayesian| adaptiv|
|00002ac0| 65 20 70 73 79 63 68 6f | 6d 65 74 72 69 63 20 6d |e psycho|metric m|
|00002ad0| 65 74 68 6f 64 2e 20 50 | 65 72 63 65 70 74 20 50 |ethod. P|ercept P|
|00002ae0| 73 79 63 68 6f 70 68 79 | 73 2c 20 33 33 20 28 32 |sychophy|s, 33 (2|
|00002af0| 29 2c 20 31 31 33 2d 32 | 30 2e 0d 0d 54 68 65 20 |), 113-2|0...The |
|00002b00| 43 72 69 63 6b 65 74 47 | 72 61 70 68 20 66 69 6c |CricketG|raph fil|
|00002b10| 65 73 20 61 72 65 20 66 | 6f 72 6d 61 74 20 66 69 |es are f|ormat fi|
|00002b20| 6c 65 73 20 74 68 61 74 | 20 73 68 6f 75 6c 64 20 |les that| should |
|00002b30| 62 65 20 6d 6f 76 65 64 | 20 69 6e 74 6f 20 74 68 |be moved| into th|
|00002b40| 65 20 66 6f 6c 64 65 72 | 20 69 6e 20 77 68 69 63 |e folder| in whic|
|00002b50| 68 20 79 6f 75 72 20 43 | 72 69 63 6b 65 74 47 72 |h your C|ricketGr|
|00002b60| 61 70 68 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |aph appl|ication |
|00002b70| 72 65 73 69 64 65 73 2e | 20 57 68 65 6e 20 79 6f |resides.| When yo|
|00002b80| 75 20 73 74 61 72 74 20 | 75 70 20 43 72 69 63 6b |u start |up Crick|
|00002b90| 65 74 47 72 61 70 68 20 | 69 74 20 77 69 6c 6c 20 |etGraph |it will |
|00002ba0| 66 69 6e 64 20 61 6e 64 | 20 6c 6f 61 64 20 61 6c |find and| load al|
|00002bb0| 6c 20 74 68 65 20 66 6f | 72 6d 61 74 20 66 69 6c |l the fo|rmat fil|
|00002bc0| 65 73 2c 20 73 6f 20 74 | 68 61 74 20 6c 61 74 65 |es, so t|hat late|
|00002bd0| 72 2c 20 77 68 65 6e 20 | 79 6f 75 20 77 61 6e 74 |r, when |you want|
|00002be0| 20 74 6f 20 70 6c 6f 74 | 20 64 61 74 61 2c 20 74 | to plot| data, t|
|00002bf0| 68 65 73 65 20 66 6f 72 | 6d 61 74 73 20 77 69 6c |hese for|mats wil|
|00002c00| 6c 20 62 65 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |l be ava|ilable i|
|00002c10| 6e 20 43 72 69 63 6b 65 | 74 47 72 61 70 68 d5 73 |n Cricke|tGraph.s|
|00002c20| 20 46 6f 72 6d 61 74 20 | 6d 65 6e 75 2e 20 28 53 | Format |menu. (S|
|00002c30| 6f 72 72 79 2c 20 74 68 | 65 79 20 64 6f 6e d5 74 |orry, th|ey don.t|
|00002c40| 20 77 6f 72 6b 20 77 69 | 74 68 20 74 68 65 20 6e | work wi|th the n|
|00002c50| 65 77 20 43 72 69 63 6b | 65 74 47 72 61 70 68 20 |ew Crick|etGraph |
|00002c60| 49 49 49 2e 29 0d 0d 47 | 65 74 56 69 64 65 6f 44 |III.)..G|etVideoD|
|00002c70| 72 69 76 65 72 73 20 61 | 6e 64 20 47 65 74 53 6c |rivers a|nd GetSl|
|00002c80| 6f 74 44 72 69 76 65 72 | 73 20 63 6f 70 79 20 61 |otDriver|s copy a|
|00002c90| 6c 6c 20 64 72 69 76 65 | 72 73 20 69 6e 74 6f 20 |ll drive|rs into |
|00002ca0| 72 65 73 6f 75 72 63 65 | 20 66 69 6c 65 73 2c 20 |resource| files, |
|00002cb0| 66 6f 72 20 73 75 62 73 | 65 71 75 65 6e 74 20 70 |for subs|equent p|
|00002cc0| 65 72 75 73 61 6c 20 69 | 6e 20 52 65 73 45 64 69 |erusal i|n ResEdi|
|00002cd0| 74 2e 0d 0d 43 4f 4e 54 | 45 4e 54 53 20 4f 46 20 |t...CONT|ENTS OF |
|00002ce0| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 53 6f 75 72 |VideoToo|lboxSour|
|00002cf0| 63 65 73 20 46 4f 4c 44 | 45 52 3a 0d 0d 42 69 6e |ces FOLD|ER:..Bin|
|00002d00| 6f 6d 69 61 6c 2e 63 2c | 20 67 69 76 65 6e 20 61 |omial.c,| given a|
|00002d10| 20 62 69 6e 6f 6d 69 61 | 6c 20 73 61 6d 70 6c 65 | binomia|l sample|
|00002d20| 2c 20 72 65 74 75 72 6e | 73 20 61 20 63 6f 6e 66 |, return|s a conf|
|00002d30| 69 64 65 6e 63 65 20 69 | 6e 74 65 72 76 61 6c 20 |idence i|nterval |
|00002d40| 66 6f 72 20 74 68 65 20 | 75 6e 64 65 72 6c 79 69 |for the |underlyi|
|00002d50| 6e 67 20 62 69 6e 6f 6d | 69 61 6c 20 70 72 6f 62 |ng binom|ial prob|
|00002d60| 61 62 69 6c 69 74 79 2e | 20 0d 0d 43 61 72 64 53 |ability.| ..CardS|
|00002d70| 6c 6f 74 2e 63 20 66 69 | 6e 64 73 20 74 68 65 20 |lot.c fi|nds the |
|00002d80| 66 69 72 73 74 20 4e 75 | 42 75 73 20 73 6c 6f 74 |first Nu|Bus slot|
|00002d90| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 61 | that co|ntains a|
|00002da0| 20 63 61 72 64 20 6f 66 | 20 74 68 65 20 67 69 76 | card of| the giv|
|00002db0| 65 6e 20 6e 61 6d 65 2e | 20 52 65 74 75 72 6e 73 |en name.| Returns|
|00002dc0| 20 2d 31 20 69 66 20 74 | 68 65 72 65 d5 73 20 6e | -1 if t|here.s n|
|00002dd0| 6f 20 73 75 63 68 20 63 | 61 72 64 2e 0d 0d 43 65 |o such c|ard...Ce|
|00002de0| 6e 74 65 72 52 65 63 74 | 49 6e 52 65 63 74 2e 63 |nterRect|InRect.c|
|00002df0| 2c 20 73 68 69 66 74 73 | 20 74 68 65 20 66 69 72 |, shifts| the fir|
|00002e00| 73 74 20 72 65 63 74 20 | 74 6f 20 63 65 6e 74 65 |st rect |to cente|
|00002e10| 72 20 69 74 20 69 6e 20 | 74 68 65 20 73 65 63 6f |r it in |the seco|
|00002e20| 6e 64 2e 20 4f 66 66 73 | 65 74 52 65 63 74 54 69 |nd. Offs|etRectTi|
|00002e30| 6c 65 20 61 6e 64 20 52 | 65 63 74 49 6e 52 65 63 |le and R|ectInRec|
|00002e40| 74 20 61 72 65 20 74 72 | 69 76 69 61 6c 20 62 75 |t are tr|ivial bu|
|00002e50| 74 20 68 61 6e 64 79 20 | 72 6f 75 74 69 6e 65 73 |t handy |routines|
|00002e60| 20 66 6f 72 20 70 6c 61 | 79 69 6e 67 20 77 69 74 | for pla|ying wit|
|00002e70| 68 20 72 65 63 74 73 2e | 20 0d 0d 43 68 69 53 71 |h rects.| ..ChiSq|
|00002e80| 75 61 72 65 2e 63 2c 20 | 67 69 76 65 6e 20 61 20 |uare.c, |given a |
|00002e90| 73 61 6d 70 6c 65 20 66 | 72 6f 6d 20 61 20 63 68 |sample f|rom a ch|
|00002ea0| 69 20 73 71 75 61 72 65 | 20 64 69 73 74 72 69 62 |i square| distrib|
|00002eb0| 75 74 69 6f 6e 20 77 69 | 74 68 20 6e 20 64 65 67 |ution wi|th n deg|
|00002ec0| 72 65 65 73 20 6f 66 20 | 66 72 65 65 64 6f 6d 2c |rees of |freedom,|
|00002ed0| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 73 69 67 | returns| the sig|
|00002ee0| 6e 69 66 69 63 61 6e 63 | 65 20 6c 65 76 65 6c 20 |nificanc|e level |
|00002ef0| 61 74 20 77 68 69 63 68 | 20 61 20 66 69 74 20 6d |at which| a fit m|
|00002f00| 61 79 20 62 65 20 72 65 | 6a 65 63 74 65 64 2e 0d |ay be re|jected..|
|00002f10| 0d 43 6f 6e 76 6f 6c 76 | 65 58 2e 63 20 61 6e 64 |.Convolv|eX.c and|
|00002f20| 20 43 6f 6e 76 6f 6c 76 | 65 59 20 61 6c 6c 6f 77 | Convolv|eY allow|
|00002f30| 20 63 6f 6e 76 6f 6c 75 | 74 69 6f 6e 2c 20 76 65 | convolu|tion, ve|
|00002f40| 72 74 69 63 61 6c 6c 79 | 20 6f 72 20 68 6f 72 69 |rtically| or hori|
|00002f50| 7a 6f 6e 74 61 6c 6c 79 | 2c 20 77 69 74 68 20 61 |zontally|, with a|
|00002f60| 6e 20 61 72 62 69 74 72 | 61 72 79 20 6f 6e 65 2d |n arbitr|ary one-|
|00002f70| 64 69 6d 65 6e 73 69 6f | 6e 61 6c 20 70 6f 69 6e |dimensio|nal poin|
|00002f80| 74 20 73 70 72 65 61 64 | 20 66 75 6e 63 74 69 6f |t spread| functio|
|00002f90| 6e 2e 20 54 68 65 20 73 | 6f 75 72 63 65 20 61 6e |n. The s|ource an|
|00002fa0| 64 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 50 69 |d destin|ation Pi|
|00002fb0| 78 6d 61 70 73 20 6d 61 | 79 20 62 65 20 74 68 65 |xmaps ma|y be the|
|00002fc0| 20 73 61 6d 65 20 6f 72 | 20 64 69 66 66 65 72 65 | same or| differe|
|00002fd0| 6e 74 2c 20 61 6e 64 20 | 6d 61 79 20 62 65 20 74 |nt, and |may be t|
|00002fe0| 68 65 20 73 63 72 65 65 | 6e 2c 20 73 6f 20 79 6f |he scree|n, so yo|
|00002ff0| 75 20 63 61 6e 20 77 61 | 74 63 68 20 69 74 20 68 |u can wa|tch it h|
|00003000| 61 70 70 65 6e 2e 20 54 | 72 79 20 74 68 65 20 64 |appen. T|ry the d|
|00003010| 65 6d 6f 20 46 69 6c 74 | 65 72 2e 0d 0d 43 6f 70 |emo Filt|er...Cop|
|00003020| 79 42 69 74 73 51 75 69 | 63 6b 6c 79 2e 63 20 69 |yBitsQui|ckly.c i|
|00003030| 73 20 61 20 64 75 6d 62 | 20 73 75 62 73 74 69 74 |s a dumb| substit|
|00003040| 75 74 65 20 66 6f 72 20 | 43 6f 70 79 42 69 74 73 |ute for |CopyBits|
|00003050| 20 74 68 61 74 20 69 67 | 6e 6f 72 65 73 20 74 68 | that ig|nores th|
|00003060| 65 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 73 20 61 |e color |tables a|
|00003070| 6e 64 20 70 61 6c 65 74 | 74 65 73 2c 20 73 69 6d |nd palet|tes, sim|
|00003080| 70 6c 79 20 63 6f 70 79 | 69 6e 67 20 70 69 78 65 |ply copy|ing pixe|
|00003090| 6c 73 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 74 |ls witho|ut any t|
|000030a0| 72 61 6e 73 6c 61 74 69 | 6f 6e 2e 20 49 74 d5 73 |ranslati|on. It.s|
|000030b0| 20 66 6f 72 20 64 6f 69 | 6e 67 20 61 6e 69 6d 61 | for doi|ng anima|
|000030c0| 74 69 6f 6e 73 2e 20 42 | 65 73 69 64 65 73 20 63 |tions. B|esides c|
|000030d0| 6f 70 79 69 6e 67 20 69 | 6d 61 67 65 73 2c 20 69 |opying i|mages, i|
|000030e0| 74 20 63 61 6e 20 61 6c | 73 6f 20 61 64 64 20 6f |t can al|so add o|
|000030f0| 72 20 6d 75 6c 74 69 70 | 6c 79 20 74 68 65 6d 2e |r multip|ly them.|
|00003100| 20 41 74 20 6f 6e 65 20 | 74 69 6d 65 20 69 74 20 | At one |time it |
|00003110| 77 61 73 20 6d 75 63 68 | 20 66 61 73 74 65 72 20 |was much| faster |
|00003120| 74 68 61 6e 20 43 6f 70 | 79 42 69 74 73 2c 20 62 |than Cop|yBits, b|
|00003130| 75 74 20 74 68 65 20 6c | 61 74 65 73 74 20 74 69 |ut the l|atest ti|
|00003140| 6d 69 6e 67 20 28 75 6e | 64 65 72 20 53 79 73 74 |ming (un|der Syst|
|00003150| 65 6d 20 37 2e 30 31 29 | 2c 20 62 79 20 54 69 6d |em 7.01)|, by Tim|
|00003160| 65 56 69 64 65 6f 2c 20 | 69 6e 64 69 63 61 74 65 |eVideo, |indicate|
|00003170| 73 20 74 68 61 74 20 43 | 6f 70 79 42 69 74 73 20 |s that C|opyBits |
|00003180| 69 73 20 6e 6f 77 20 6e | 65 61 72 6c 79 20 61 73 |is now n|early as|
|00003190| 20 66 61 73 74 20 61 73 | 20 43 6f 70 79 42 69 74 | fast as| CopyBit|
|000031a0| 73 51 75 69 63 6b 6c 79 | 2e 20 54 72 79 20 74 68 |sQuickly|. Try th|
|000031b0| 65 20 64 65 6d 6f 20 53 | 61 6e 64 73 74 6f 72 6d |e demo S|andstorm|
|000031c0| 2e 0d 0d 43 6f 70 79 51 | 75 69 63 6b 44 72 61 77 |...CopyQ|uickDraw|
|000031d0| 47 6c 6f 62 61 6c 73 2e | 63 20 61 6c 6c 6f 77 73 |Globals.|c allows|
|000031e0| 20 54 48 49 4e 4b 20 43 | 20 70 72 6f 67 72 61 6d | THINK C| program|
|000031f0| 73 20 74 6f 20 75 73 65 | 20 62 6f 74 68 20 74 68 |s to use| both th|
|00003200| 65 20 63 6f 6e 73 6f 6c | 65 20 61 6e 64 20 4d 61 |e consol|e and Ma|
|00003210| 63 54 72 61 70 73 2e 0d | 0d 44 61 74 65 53 74 72 |cTraps..|.DateStr|
|00003220| 69 6e 67 2e 63 20 63 72 | 65 61 74 65 73 20 61 20 |ing.c cr|eates a |
|00003230| 75 6e 69 71 75 65 20 73 | 74 72 69 6e 67 20 72 65 |unique s|tring re|
|00003240| 70 72 65 73 65 6e 74 69 | 6e 67 20 74 68 65 20 64 |presenti|ng the d|
|00003250| 61 74 65 20 61 6e 64 20 | 74 69 6d 65 2c 20 73 75 |ate and |time, su|
|00003260| 69 74 61 62 6c 65 20 61 | 73 20 61 6e 20 65 78 74 |itable a|s an ext|
|00003270| 65 6e 73 69 6f 6e 20 66 | 6f 72 20 61 20 64 61 74 |ension f|or a dat|
|00003280| 61 20 66 69 6c 65 20 6e | 61 6d 65 2e 0d 0d 44 72 |a file n|ame...Dr|
|00003290| 61 77 50 72 69 6e 74 66 | 2e 63 20 64 6f 65 73 20 |awPrintf|.c does |
|000032a0| 61 20 73 70 72 69 6e 74 | 66 20 61 6e 64 20 64 72 |a sprint|f and dr|
|000032b0| 61 77 73 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |aws the |characte|
|000032c0| 72 73 20 69 6e 74 6f 20 | 74 68 65 20 63 75 72 72 |rs into |the curr|
|000032d0| 65 6e 74 20 70 6f 72 74 | 2c 20 75 73 69 6e 67 20 |ent port|, using |
|000032e0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 66 6f 6e 74 |the curr|ent font|
|000032f0| 20 65 74 63 2e 20 54 72 | 79 20 74 68 65 20 64 65 | etc. Tr|y the de|
|00003300| 6d 6f 20 54 65 73 74 47 | 44 56 69 64 65 6f 2e 0d |mo TestG|DVideo..|
|00003310| 0d 66 66 70 72 69 6e 74 | 66 2e 63 20 70 72 69 6e |.ffprint|f.c prin|
|00003320| 74 73 20 74 6f 20 74 77 | 6f 20 6f 75 74 70 75 74 |ts to tw|o output|
|00003330| 20 73 74 72 65 61 6d 73 | 2c 20 75 73 75 61 6c 6c | streams|, usuall|
|00003340| 79 20 73 74 64 6f 75 74 | 20 61 6e 64 20 61 20 66 |y stdout| and a f|
|00003350| 69 6c 65 2e 20 49 74 20 | 61 6c 73 6f 20 73 61 76 |ile. It |also sav|
|00003360| 65 73 20 61 6e 64 20 72 | 65 73 74 6f 72 65 73 20 |es and r|estores |
|00003370| 74 68 65 20 70 6f 72 74 | 20 61 6e 64 20 47 44 65 |the port| and GDe|
|00003380| 76 69 63 65 2e 0d 0d 46 | 6c 75 73 68 43 61 63 68 |vice...F|lushCach|
|00003390| 65 52 61 6e 67 65 2e 63 | 20 66 72 6f 6d 20 41 70 |eRange.c| from Ap|
|000033a0| 70 6c 65 2c 20 70 72 6f | 76 69 64 65 73 20 61 20 |ple, pro|vides a |
|000033b0| 6d 61 63 68 69 6e 65 2d | 69 6e 64 65 70 65 6e 64 |machine-|independ|
|000033c0| 65 6e 74 20 77 61 79 20 | 6f 66 20 66 6c 75 73 68 |ent way |of flush|
|000033d0| 69 6e 67 20 79 6f 75 72 | 20 70 72 6f 63 65 73 73 |ing your| process|
|000033e0| 6f 72 d5 73 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |or.s ins|truction|
|000033f0| 20 61 6e 64 20 64 61 74 | 61 20 63 61 63 68 65 73 | and dat|a caches|
|00003400| 2e 0d 0d 47 44 46 72 61 | 6d 65 52 61 74 65 2e 63 |...GDFra|meRate.c|
|00003410| 20 6d 65 61 73 75 72 65 | 73 20 74 68 65 20 66 72 | measure|s the fr|
|00003420| 61 6d 65 20 72 61 74 65 | 20 6f 66 20 61 20 76 69 |ame rate| of a vi|
|00003430| 64 65 6f 20 64 65 76 69 | 63 65 20 69 6e 20 48 7a |deo devi|ce in Hz|
|00003440| 2e 20 47 44 46 72 61 6d | 65 73 50 65 72 43 6c 75 |. GDFram|esPerClu|
|00003450| 74 55 70 64 61 74 65 28 | 29 20 6d 65 61 73 75 72 |tUpdate(|) measur|
|00003460| 65 73 20 68 6f 77 20 6c | 6f 6e 67 20 69 74 20 74 |es how l|ong it t|
|00003470| 61 6b 65 73 20 74 6f 20 | 75 70 64 61 74 65 20 74 |akes to |update t|
|00003480| 68 65 20 63 6c 75 74 2c | 20 69 6e 20 66 72 61 6d |he clut,| in fram|
|00003490| 65 73 2e 20 47 44 56 42 | 4c 52 61 74 65 28 29 20 |es. GDVB|LRate() |
|000034a0| 6d 65 61 73 75 72 65 73 | 20 74 68 65 20 72 61 74 |measures| the rat|
|000034b0| 65 20 6f 66 20 56 42 4c | 20 69 6e 74 65 72 72 75 |e of VBL| interru|
|000034c0| 70 74 73 20 67 65 6e 65 | 72 61 74 65 64 20 62 79 |pts gene|rated by|
|000034d0| 20 61 20 76 69 64 65 6f | 20 64 65 76 69 63 65 20 | a video| device |
|000034e0| 69 6e 20 48 7a 2e 20 47 | 44 4d 6f 76 69 65 53 69 |in Hz. G|DMovieSi|
|000034f0| 7a 65 28 29 20 6d 65 61 | 73 75 72 65 73 20 77 68 |ze() mea|sures wh|
|00003500| 61 74 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 74 |at fract|ion of t|
|00003510| 68 65 20 73 63 72 65 65 | 6e 20 79 6f 75 20 63 61 |he scree|n you ca|
|00003520| 6e 20 66 69 6c 6c 20 77 | 69 74 68 20 61 20 72 65 |n fill w|ith a re|
|00003530| 61 6c 2d 74 69 6d 65 20 | 6d 6f 76 69 65 20 28 61 |al-time |movie (a|
|00003540| 20 6e 65 77 20 69 6d 61 | 67 65 20 6f 6e 20 65 61 | new ima|ge on ea|
|00003550| 63 68 20 66 72 61 6d 65 | 29 20 75 73 69 6e 67 20 |ch frame|) using |
|00003560| 65 69 74 68 65 72 20 43 | 6f 70 79 42 69 74 73 51 |either C|opyBitsQ|
|00003570| 75 69 63 6b 6c 79 20 6f | 72 20 43 6f 70 79 42 69 |uickly o|r CopyBi|
|00003580| 74 73 20 74 6f 20 63 6f | 70 79 20 66 72 6f 6d 20 |ts to co|py from |
|00003590| 6d 65 6d 6f 72 79 20 74 | 6f 20 76 69 64 65 6f 20 |memory t|o video |
|000035a0| 63 61 72 64 2e 20 54 72 | 79 20 74 68 65 20 64 65 |card. Tr|y the de|
|000035b0| 6d 6f 20 54 69 6d 65 56 | 69 64 65 6f 2e 0d 0d 47 |mo TimeV|ideo...G|
|000035c0| 44 4f 70 65 6e 57 69 6e | 64 6f 77 31 28 29 20 6f |DOpenWin|dow1() o|
|000035d0| 70 65 6e 73 20 61 20 66 | 75 6c 6c 20 73 63 72 65 |pens a f|ull scre|
|000035e0| 65 6e 20 63 6f 6c 6f 72 | 20 77 69 6e 64 6f 77 20 |en color| window |
|000035f0| 77 69 74 68 20 61 6e 20 | 65 78 70 6c 69 63 69 74 |with an |explicit|
|00003600| 20 70 61 6c 65 74 74 65 | 20 6f 6e 20 61 6e 20 61 | palette| on an a|
|00003610| 72 62 69 74 72 61 72 79 | 20 73 63 72 65 65 6e 20 |rbitrary| screen |
|00003620| 2e 20 47 44 44 69 73 70 | 6f 73 65 57 69 6e 64 6f |. GDDisp|oseWindo|
|00003630| 77 31 28 29 20 74 6f 20 | 63 6c 6f 73 65 20 74 68 |w1() to |close th|
|00003640| 65 20 77 69 6e 64 6f 77 | 20 61 6e 64 20 72 65 73 |e window| and res|
|00003650| 74 6f 72 65 20 74 68 65 | 20 73 63 72 65 65 6e 27 |tore the| screen'|
|00003660| 73 20 63 6c 75 74 2e 20 | 41 64 64 45 78 70 6c 69 |s clut. |AddExpli|
|00003670| 63 69 74 50 61 6c 65 74 | 74 65 28 29 20 61 64 64 |citPalet|te() add|
|00003680| 73 20 61 20 70 61 6c 65 | 74 74 65 20 77 69 74 68 |s a pale|tte with|
|00003690| 20 61 6c 6c 20 63 6f 6c | 6f 72 73 20 6d 61 72 6b | all col|ors mark|
|000036a0| 65 64 20 65 78 70 6c 69 | 63 69 74 20 74 6f 20 61 |ed expli|cit to a|
|000036b0| 6e 79 20 63 6f 6c 6f 72 | 20 77 69 6e 64 6f 77 2c |ny color| window,|
|000036c0| 20 61 6c 6c 6f 77 69 6e | 67 20 79 6f 75 20 74 6f | allowin|g you to|
|000036d0| 20 75 73 65 20 50 6d 46 | 6f 72 65 43 6f 6c 6f 72 | use PmF|oreColor|
|000036e0| 20 6f 72 20 50 6d 42 61 | 63 6b 43 6f 6c 6f 72 20 | or PmBa|ckColor |
|000036f0| 74 6f 20 64 65 73 69 67 | 6e 61 74 65 20 74 68 65 |to desig|nate the|
|00003700| 20 6e 75 6d 62 65 72 20 | 79 6f 75 20 77 61 6e 74 | number |you want|
|00003710| 20 74 6f 20 6c 6f 61 64 | 20 69 6e 74 6f 20 74 68 | to load| into th|
|00003720| 65 20 70 69 78 6d 61 70 | 2e 20 54 72 79 20 74 68 |e pixmap|. Try th|
|00003730| 65 20 64 65 6d 6f 20 47 | 72 61 74 69 6e 67 2e 0d |e demo G|rating..|
|00003740| 0d 47 44 56 69 64 65 6f | 2e 63 20 61 6c 6c 6f 77 |.GDVideo|.c allow|
|00003750| 73 20 79 6f 75 20 74 6f | 20 63 6f 6e 74 72 6f 6c |s you to| control|
|00003760| 20 74 68 65 20 76 69 64 | 65 6f 20 64 72 69 76 65 | the vid|eo drive|
|00003770| 72 20 64 69 72 65 63 74 | 6c 79 2c 20 62 79 70 61 |r direct|ly, bypa|
|00003780| 73 73 69 6e 67 20 51 75 | 69 63 6b 44 72 61 77 2e |ssing Qu|ickDraw.|
|00003790| 20 49 20 63 6f 6e 73 69 | 64 65 72 20 74 68 69 73 | I consi|der this|
|000037a0| 20 65 73 73 65 6e 74 69 | 61 6c 20 66 6f 72 20 63 | essenti|al for c|
|000037b0| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 6c |ontrolli|ng the l|
|000037c0| 6f 6f 6b 75 70 20 74 61 | 62 6c 65 20 6f 66 20 74 |ookup ta|ble of t|
|000037d0| 68 65 20 76 69 64 65 6f | 20 63 61 72 64 2e 20 47 |he video| card. G|
|000037e0| 44 53 65 74 45 6e 74 72 | 69 65 73 28 29 20 61 6e |DSetEntr|ies() an|
|000037f0| 64 20 47 44 44 69 72 65 | 63 74 53 65 74 45 6e 74 |d GDDire|ctSetEnt|
|00003800| 72 69 65 73 28 29 20 6c | 6f 61 64 20 74 68 65 20 |ries() l|oad the |
|00003810| 63 6c 75 74 2c 20 61 6e | 64 2c 20 61 73 20 61 20 |clut, an|d, as a |
|00003820| 73 69 64 65 20 65 66 66 | 65 63 74 2c 20 6d 61 79 |side eff|ect, may|
|00003830| 20 70 72 6f 76 69 64 65 | 20 61 20 64 65 76 69 63 | provide| a devic|
|00003840| 65 2d 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 77 61 |e-indepe|ndent wa|
|00003850| 79 20 74 6f 20 73 79 6e | 63 68 72 6f 6e 69 7a 65 |y to syn|chronize|
|00003860| 20 79 6f 75 72 20 65 78 | 70 65 72 69 6d 65 6e 74 | your ex|periment|
|00003870| 20 74 6f 20 61 20 76 69 | 64 65 6f 20 63 61 72 64 | to a vi|deo card|
|00003880| 2c 20 62 75 74 20 72 75 | 6e 20 74 68 65 20 64 65 |, but ru|n the de|
|00003890| 6d 6f 20 54 69 6d 65 56 | 69 64 65 6f 20 74 6f 20 |mo TimeV|ideo to |
|000038a0| 63 68 65 63 6b 20 6f 75 | 74 20 79 6f 75 72 20 76 |check ou|t your v|
|000038b0| 69 64 65 6f 20 63 61 72 | 64 73 20 62 65 66 6f 72 |ideo car|ds befor|
|000038c0| 65 20 79 6f 75 20 64 65 | 70 65 6e 64 20 6f 6e 20 |e you de|pend on |
|000038d0| 69 74 2e 20 0d 47 44 47 | 65 74 45 6e 74 72 69 65 |it. .GDG|etEntrie|
|000038e0| 73 28 29 20 72 65 61 64 | 73 20 74 68 65 20 63 6c |s() read|s the cl|
|000038f0| 75 74 2e 20 28 54 68 65 | 20 63 6c 75 74 20 76 61 |ut. (The| clut va|
|00003900| 6c 75 65 73 20 69 6e 63 | 6f 72 70 6f 72 61 74 65 |lues inc|orporate|
|00003910| 20 61 6e 79 20 67 61 6d | 6d 61 2d 63 6f 72 72 65 | any gam|ma-corre|
|00003920| 63 74 69 6f 6e 2e 29 0d | 47 44 52 65 73 74 6f 72 |ction.).|GDRestor|
|00003930| 65 44 65 76 69 63 65 43 | 6c 75 74 28 29 20 77 6f |eDeviceC|lut() wo|
|00003940| 72 6b 73 20 69 6e 20 6d | 6f 72 65 20 73 69 74 75 |rks in m|ore situ|
|00003950| 61 74 69 6f 6e 73 20 74 | 68 61 6e 20 41 70 70 6c |ations t|han Appl|
|00003960| 65 27 73 20 52 65 73 74 | 6f 72 65 44 65 76 69 63 |e's Rest|oreDevic|
|00003970| 65 43 6c 75 74 28 29 2e | 0d 47 44 53 61 76 65 47 |eClut().|.GDSaveG|
|00003980| 61 6d 6d 61 28 29 2f 47 | 44 52 65 73 74 6f 72 65 |amma()/G|DRestore|
|00003990| 47 61 6d 6d 61 20 73 61 | 76 65 2f 72 65 73 74 6f |Gamma sa|ve/resto|
|000039a0| 72 65 20 74 68 65 20 64 | 72 69 76 65 72 27 73 20 |re the d|river's |
|000039b0| 67 61 6d 6d 61 2d 63 6f | 72 72 65 63 74 69 6f 6e |gamma-co|rrection|
|000039c0| 20 74 61 62 6c 65 2e 20 | 0d 47 44 53 65 74 47 61 | table. |.GDSetGa|
|000039d0| 6d 6d 61 28 29 20 6c 6f | 61 64 73 20 61 20 6e 65 |mma() lo|ads a ne|
|000039e0| 77 20 67 61 6d 6d 61 2d | 63 6f 72 72 65 63 74 69 |w gamma-|correcti|
|000039f0| 6f 6e 20 74 61 62 6c 65 | 2e 20 0d 47 44 55 6e 63 |on table|. .GDUnc|
|00003a00| 6f 72 72 65 63 74 65 64 | 47 61 6d 6d 61 28 29 20 |orrected|Gamma() |
|00003a10| 6c 6f 61 64 73 20 61 6e | 20 69 64 65 6e 74 69 74 |loads an| identit|
|00003a20| 79 20 6d 61 74 72 69 78 | 20 61 73 20 74 68 65 20 |y matrix| as the |
|00003a30| 67 61 6d 6d 61 2d 63 6f | 72 72 65 63 74 69 6f 6e |gamma-co|rrection|
|00003a40| 20 74 61 62 6c 65 2e 20 | 0d 47 44 47 65 74 47 61 | table. |.GDGetGa|
|00003a50| 6d 6d 61 28 29 20 67 65 | 74 73 20 74 68 65 20 63 |mma() ge|ts the c|
|00003a60| 75 72 72 65 63 74 20 67 | 61 6d 6d 61 2d 63 6f 72 |urrect g|amma-cor|
|00003a70| 72 65 63 74 69 6f 6e 20 | 74 61 62 6c 65 2c 20 61 |rection |table, a|
|00003a80| 6e 64 20 69 6e 63 69 64 | 65 6e 74 61 6c 6c 79 2c |nd incid|entally,|
|00003a90| 20 69 73 20 74 68 65 20 | 6f 6e 6c 79 20 77 61 79 | is the |only way|
|00003aa0| 20 49 20 6b 6e 6f 77 20 | 6f 66 20 74 6f 20 64 65 | I know |of to de|
|00003ab0| 74 65 72 6d 69 6e 65 20 | 74 68 65 20 6e 75 6d 62 |termine |the numb|
|00003ac0| 65 72 20 6f 66 20 62 69 | 74 73 20 75 73 65 64 20 |er of bi|ts used |
|00003ad0| 62 79 20 74 68 65 20 76 | 69 64 65 6f 20 64 61 63 |by the v|ideo dac|
|00003ae0| 2e 0d 47 44 43 6c 75 74 | 53 69 7a 65 28 29 20 72 |..GDClut|Size() r|
|00003af0| 65 74 75 72 6e 73 20 74 | 68 65 20 63 75 72 72 65 |eturns t|he curre|
|00003b00| 6e 74 20 6e 75 6d 62 65 | 72 20 6f 66 20 65 6e 74 |nt numbe|r of ent|
|00003b10| 72 69 65 73 20 69 6e 20 | 74 68 65 20 76 69 64 65 |ries in |the vide|
|00003b20| 6f 20 64 72 69 76 65 72 | 27 73 20 63 6c 75 74 2e |o driver|'s clut.|
|00003b30| 20 0d 47 44 4e 61 6d 65 | 28 29 2c 20 47 44 56 65 | .GDName|(), GDVe|
|00003b40| 72 73 69 6f 6e 28 29 2c | 20 61 6e 64 20 47 44 43 |rsion(),| and GDC|
|00003b50| 61 72 64 4e 61 6d 65 28 | 29 20 72 65 74 75 72 6e |ardName(|) return|
|00003b60| 20 74 68 65 20 6e 61 6d | 65 20 61 6e 64 20 76 65 | the nam|e and ve|
|00003b70| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 76 69 64 |rsion of| the vid|
|00003b80| 65 6f 20 64 72 69 76 65 | 72 20 61 6e 64 20 74 68 |eo drive|r and th|
|00003b90| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 76 69 |e name o|f the vi|
|00003ba0| 64 65 6f 20 63 61 72 64 | 20 74 68 61 74 20 79 6f |deo card| that yo|
|00003bb0| 75 d5 72 65 20 75 73 69 | 6e 67 2e 20 0d 50 61 74 |u.re usi|ng. .Pat|
|00003bc0| 63 68 4d 61 63 49 49 63 | 69 56 69 64 65 6f 44 72 |chMacIIc|iVideoDr|
|00003bd0| 69 76 65 72 28 29 20 66 | 69 78 65 73 20 61 20 62 |iver() f|ixes a b|
|00003be0| 75 67 20 69 6e 20 74 68 | 65 20 4d 61 63 20 49 49 |ug in th|e Mac II|
|00003bf0| 63 69 20 62 75 69 6c 74 | 2d 69 6e 20 76 69 64 65 |ci built|-in vide|
|00003c00| 6f 20 64 72 69 76 65 72 | 2e 0d 54 72 79 20 74 68 |o driver|..Try th|
|00003c10| 65 20 64 65 6d 6f 73 20 | 54 69 6d 65 56 69 64 65 |e demos |TimeVide|
|00003c20| 6f 20 61 6e 64 20 54 65 | 73 74 47 44 56 69 64 65 |o and Te|stGDVide|
|00003c30| 6f 2e 20 53 65 65 20 d2 | 56 69 64 65 6f 20 73 79 |o. See .|Video sy|
|00003c40| 6e 63 68 d3 2e 0d 0d 47 | 65 74 43 6c 69 63 6b 73 |nch....G|etClicks|
|00003c50| 2e 63 20 77 61 69 74 73 | 20 66 6f 72 20 61 20 6d |.c waits| for a m|
|00003c60| 6f 75 73 65 20 63 6c 69 | 63 6b 2c 20 61 6e 64 20 |ouse cli|ck, and |
|00003c70| 64 65 74 65 72 6d 69 6e | 65 73 20 77 68 65 74 68 |determin|es wheth|
|00003c80| 65 72 20 69 74 d5 73 20 | 61 20 73 69 6e 67 6c 65 |er it.s |a single|
|00003c90| 2c 20 64 6f 75 62 6c 65 | 2c 20 6f 72 20 74 72 69 |, double|, or tri|
|00003ca0| 70 6c 65 20 63 6c 69 63 | 6b 2e 0d 0d 47 65 74 53 |ple clic|k...GetS|
|00003cb0| 63 72 65 65 6e 44 65 76 | 69 63 65 2e 63 20 69 73 |creenDev|ice.c is|
|00003cc0| 20 61 20 68 61 6e 64 79 | 20 77 61 79 20 74 6f 20 | a handy| way to |
|00003cd0| 67 65 74 20 74 68 65 20 | 47 44 48 61 6e 64 6c 65 |get the |GDHandle|
|00003ce0| 20 6f 66 20 61 6e 79 20 | 73 63 72 65 65 6e 2e 0d | of any |screen..|
|00003cf0| 0d 47 65 74 56 6f 6c 74 | 61 67 65 2e 63 20 72 65 |.GetVolt|age.c re|
|00003d00| 61 64 73 20 61 20 76 6f | 6c 74 61 67 65 20 66 72 |ads a vo|ltage fr|
|00003d10| 6f 6d 20 74 68 65 20 44 | 61 74 61 20 54 72 61 6e |om the D|ata Tran|
|00003d20| 73 6c 61 74 69 6f 6e 20 | 41 6e 61 6c 6f 67 20 74 |slation |Analog t|
|00003d30| 6f 20 44 69 67 69 74 61 | 6c 20 43 6f 6e 76 65 72 |o Digita|l Conver|
|00003d40| 74 65 72 2e 20 28 54 68 | 69 73 20 69 73 20 75 73 |ter. (Th|is is us|
|00003d50| 65 64 20 68 65 61 76 69 | 6c 79 20 62 79 20 43 61 |ed heavi|ly by Ca|
|00003d60| 6c 69 62 72 61 74 65 4c | 75 6d 69 6e 61 6e 63 65 |librateL|uminance|
|00003d70| 2c 20 43 68 65 63 6b 43 | 6f 6e 74 72 61 73 74 2c |, CheckC|ontrast,|
|00003d80| 20 61 6e 64 20 4d 65 61 | 73 75 72 65 4d 54 46 2e | and Mea|sureMTF.|
|00003d90| 29 0d 0d 48 69 64 65 4d | 65 6e 75 42 61 72 2e 63 |)..HideM|enuBar.c|
|00003da0| 20 61 6e 64 20 53 71 75 | 61 72 65 43 6f 72 6e 65 | and Squ|areCorne|
|00003db0| 72 73 28 64 65 76 69 63 | 65 29 20 61 6c 6c 6f 77 |rs(devic|e) allow|
|00003dc0| 20 75 73 65 20 6f 66 20 | 74 68 65 20 77 68 6f 6c | use of |the whol|
|00003dd0| 65 20 73 63 72 65 65 6e | 2e 20 54 72 79 20 47 72 |e screen|. Try Gr|
|00003de0| 61 74 69 6e 67 2e 0d 0d | 49 64 65 6e 74 69 66 79 |ating...|Identify|
|00003df0| 2e 63 20 69 6e 63 6c 75 | 64 65 73 20 73 65 76 65 |.c inclu|des seve|
|00003e00| 72 61 6c 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 49 |ral func|tions, I|
|00003e10| 64 65 6e 74 69 66 79 43 | 6f 6d 70 69 6c 65 72 28 |dentifyC|ompiler(|
|00003e20| 29 2c 20 49 64 65 6e 74 | 69 66 79 4d 61 63 68 69 |), Ident|ifyMachi|
|00003e30| 6e 65 28 29 2c 20 49 64 | 65 6e 74 69 66 79 56 69 |ne(), Id|entifyVi|
|00003e40| 64 65 6f 28 29 2c 20 74 | 68 61 74 20 70 72 6f 64 |deo(), t|hat prod|
|00003e50| 75 63 65 20 73 65 6c 66 | 20 65 78 70 6c 61 6e 61 |uce self| explana|
|00003e60| 74 6f 72 79 20 74 65 78 | 74 20 73 74 72 69 6e 67 |tory tex|t string|
|00003e70| 73 20 74 6f 20 64 6f 63 | 75 6d 65 6e 74 20 74 65 |s to doc|ument te|
|00003e80| 73 74 20 63 6f 6e 64 69 | 74 69 6f 6e 73 2c 20 65 |st condi|tions, e|
|00003e90| 74 63 2e 20 54 72 79 20 | 74 68 65 20 64 65 6d 6f |tc. Try |the demo|
|00003ea0| 73 20 54 69 6d 65 43 50 | 55 20 61 6e 64 20 54 69 |s TimeCP|U and Ti|
|00003eb0| 6d 65 56 69 64 65 6f 2e | 0d 0d 49 73 4e 61 6e 2e |meVideo.|..IsNan.|
|00003ec0| 63 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 20 |c allows| you to |
|00003ed0| 74 65 73 74 20 77 68 65 | 74 68 65 72 20 79 6f 75 |test whe|ther you|
|00003ee0| 72 20 64 6f 75 62 6c 65 | 20 76 61 72 69 61 62 6c |r double| variabl|
|00003ef0| 65 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 4e 6f 74 |e contai|ns a Not|
|00003f00| 20 41 20 4e 75 6d 62 65 | 72 20 63 6f 64 65 20 69 | A Numbe|r code i|
|00003f10| 6e 73 74 65 61 64 20 6f | 66 20 61 20 6c 65 67 61 |nstead o|f a lega|
|00003f20| 6c 20 6e 75 6d 62 65 72 | 2e 20 49 73 4e 61 6e 28 |l number|. IsNan(|
|00003f30| 29 20 72 65 74 75 72 6e | 73 20 74 68 65 20 69 6e |) return|s the in|
|00003f40| 64 65 78 20 28 31 20 2e | 20 2e 20 2e 20 32 35 35 |dex (1 .| . . 255|
|00003f50| 29 20 6f 66 20 74 68 65 | 20 4e 41 4e 2c 20 6f 72 |) of the| NAN, or|
|00003f60| 20 7a 65 72 6f 20 69 66 | 20 69 74 27 73 20 6e 6f | zero if| it's no|
|00003f70| 74 20 61 20 4e 41 4e 2e | 20 49 73 49 6e 66 28 29 |t a NAN.| IsInf()|
|00003f80| 20 72 65 74 75 72 6e 73 | 20 2d 31 20 66 6f 72 20 | returns| -1 for |
|00003f90| 2d 49 4e 46 2c 20 2b 31 | 20 66 6f 72 20 2b 49 4e |-INF, +1| for +IN|
|00003fa0| 46 2c 20 61 6e 64 20 7a | 65 72 6f 20 66 6f 72 20 |F, and z|ero for |
|00003fb0| 6e 6f 74 20 b1 49 4e 46 | 2e 20 54 68 65 20 65 78 |not .INF|. The ex|
|00003fc0| 74 72 61 2d 66 61 73 74 | 20 6d 61 63 72 6f 20 49 |tra-fast| macro I|
|00003fd0| 73 46 69 6e 69 74 65 28 | 29 20 72 65 74 75 72 6e |sFinite(|) return|
|00003fe0| 73 20 31 20 69 66 20 79 | 6f 75 72 20 6e 75 6d 62 |s 1 if y|our numb|
|00003ff0| 65 72 20 69 73 20 6e 65 | 69 74 68 65 72 20 4e 41 |er is ne|ither NA|
|00004000| 4e 20 6e 6f 72 20 b1 49 | 4e 46 2e 0d 0d 6b 62 68 |N nor .I|NF...kbh|
|00004010| 69 74 2e 63 20 61 6e 64 | 20 67 65 74 63 68 61 72 |it.c and| getchar|
|00004020| 55 6e 62 75 66 66 65 72 | 65 64 28 29 20 6f 66 66 |Unbuffer|ed() off|
|00004030| 65 72 20 6f 6c 64 2d 66 | 61 73 68 69 6f 6e 65 64 |er old-f|ashioned|
|00004040| 20 6d 69 63 72 6f 63 6f | 6d 70 75 74 65 72 2d 73 | microco|mputer-s|
|00004050| 74 79 6c 65 20 75 6e 62 | 75 66 66 65 72 65 64 20 |tyle unb|uffered |
|00004060| 61 63 63 65 73 73 20 74 | 6f 20 6b 65 79 73 74 72 |access t|o keystr|
|00004070| 6f 6b 65 73 2e 0d 0d 4c | 6f 67 32 4c 2e 63 20 71 |okes...L|og2L.c q|
|00004080| 75 69 63 6b 6c 79 20 72 | 65 74 75 72 6e 73 20 74 |uickly r|eturns t|
|00004090| 68 65 20 28 6c 6f 6e 67 | 29 20 69 6e 74 65 67 65 |he (long|) intege|
|000040a0| 72 20 70 61 72 74 20 6f | 66 20 74 68 65 20 6c 6f |r part o|f the lo|
|000040b0| 67 32 20 6f 66 20 61 20 | 6c 6f 6e 67 20 69 6e 74 |g2 of a |long int|
|000040c0| 65 67 65 72 20 61 72 67 | 75 6d 65 6e 74 2e 20 0d |eger arg|ument. .|
|000040d0| 0d 4c 75 6d 69 6e 61 6e | 63 65 2e 63 20 70 72 6f |.Luminan|ce.c pro|
|000040e0| 76 69 64 65 73 20 66 6f | 72 20 70 72 6f 67 72 61 |vides fo|r progra|
|000040f0| 6d 6d 69 6e 67 20 6f 66 | 20 74 68 65 20 6c 6f 6f |mming of| the loo|
|00004100| 6b 75 70 20 74 61 62 6c | 65 20 66 6f 72 20 67 61 |kup tabl|e for ga|
|00004110| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 2c 20 |mma corr|ection, |
|00004120| 61 6e 64 20 75 73 65 20 | 6f 66 20 61 20 76 69 64 |and use |of a vid|
|00004130| 65 6f 20 61 74 74 65 6e | 75 61 74 6f 72 2e 20 49 |eo atten|uator. I|
|00004140| 74 73 20 74 68 65 6f 72 | 79 20 6f 66 20 6f 70 65 |ts theor|y of ope|
|00004150| 72 61 74 69 6f 6e 20 69 | 73 20 64 65 73 63 72 69 |ration i|s descri|
|00004160| 62 65 64 20 62 79 20 50 | 65 6c 6c 69 20 61 6e 64 |bed by P|elli and|
|00004170| 20 5a 68 61 6e 67 20 28 | 31 39 39 31 29 2e 20 44 | Zhang (|1991). D|
|00004180| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 69 73 20 |ocumenta|tion is |
|00004190| 69 6e 20 4c 75 6d 69 6e | 61 6e 63 65 2e 64 6f 63 |in Lumin|ance.doc|
|000041a0| 20 69 6e 20 74 68 65 20 | 4e 6f 74 65 73 20 66 6f | in the |Notes fo|
|000041b0| 6c 64 65 72 2e 20 54 72 | 79 20 74 68 65 20 64 65 |lder. Tr|y the de|
|000041c0| 6d 6f 73 20 46 6c 69 63 | 6b 65 72 47 72 61 74 69 |mos Flic|kerGrati|
|000041d0| 6e 67 20 61 6e 64 20 46 | 69 6c 74 65 72 2e 0d 0d |ng and F|ilter...|
|000041e0| 4c 75 6d 69 6e 61 6e 63 | 65 2e 68 20 69 73 20 74 |Luminanc|e.h is t|
|000041f0| 68 65 20 68 65 61 64 65 | 72 20 66 69 6c 65 20 66 |he heade|r file f|
|00004200| 6f 72 20 75 73 65 20 77 | 69 74 68 20 4c 75 6d 69 |or use w|ith Lumi|
|00004210| 6e 61 6e 63 65 2e 63 2e | 0d 0d 4c 75 6d 69 6e 61 |nance.c.|..Lumina|
|00004220| 6e 63 65 52 65 63 6f 72 | 64 31 2e 68 20 69 73 20 |nceRecor|d1.h is |
|00004230| 61 20 73 61 6d 70 6c 65 | 20 d2 68 65 61 64 65 72 |a sample| .header|
|00004240| d3 20 66 69 6c 65 20 70 | 72 6f 64 75 63 65 64 20 |. file p|roduced |
|00004250| 62 79 20 43 61 6c 69 62 | 72 61 74 65 4c 75 6d 69 |by Calib|rateLumi|
|00004260| 6e 61 6e 63 65 2e 63 20 | 66 6f 72 20 6f 6e 65 20 |nance.c |for one |
|00004270| 6f 66 20 6d 79 20 6d 6f | 6e 69 74 6f 72 73 2e 20 |of my mo|nitors. |
|00004280| 49 74 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |It descr|ibes the|
|00004290| 20 67 61 6d 6d 61 20 66 | 75 6e 63 74 69 6f 6e 20 | gamma f|unction |
|000042a0| 61 6e 64 20 74 68 65 20 | 67 61 69 6e 73 20 6f 66 |and the |gains of|
|000042b0| 20 74 68 65 20 74 68 72 | 65 65 20 63 68 61 6e 6e | the thr|ee chann|
|000042c0| 65 6c 73 20 6f 66 20 74 | 68 65 20 49 53 52 20 56 |els of t|he ISR V|
|000042d0| 69 64 65 6f 20 61 74 74 | 65 6e 75 61 74 6f 72 2e |ideo att|enuator.|
|000042e0| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 72 75 6e 20 | You sho|uld run |
|000042f0| 43 61 6c 69 62 72 61 74 | 65 4c 75 6d 69 6e 61 6e |Calibrat|eLuminan|
|00004300| 63 65 20 74 6f 20 6d 61 | 6b 65 20 79 6f 75 72 20 |ce to ma|ke your |
|00004310| 6f 77 6e 20 66 6f 72 20 | 65 61 63 68 20 6f 66 20 |own for |each of |
|00004320| 79 6f 75 72 20 6d 6f 6e | 69 74 6f 72 73 2e 0d 0d |your mon|itors...|
|00004330| 4d 61 6b 65 4e 6f 69 73 | 65 2e 63 20 73 79 6e 74 |MakeNois|e.c synt|
|00004340| 68 65 73 69 7a 65 73 20 | 72 61 6e 64 6f 6d 20 63 |hesizes |random c|
|00004350| 68 65 63 6b 65 72 62 6f | 61 72 64 20 6d 6f 76 69 |heckerbo|ard movi|
|00004360| 65 73 2e 20 4d 61 6b 65 | 4e 6f 69 73 65 31 20 70 |es. Make|Noise1 p|
|00004370| 72 6f 76 69 64 65 73 20 | 61 20 73 69 6d 70 6c 65 |rovides |a simple|
|00004380| 72 20 69 6e 74 65 72 66 | 61 63 65 20 74 68 61 74 |r interf|ace that|
|00004390| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 73 | allows |you to s|
|000043a0| 70 65 63 69 66 79 20 77 | 68 65 74 68 65 72 20 6f |pecify w|hether o|
|000043b0| 72 20 6e 6f 74 20 74 6f | 20 72 61 6e 64 6f 6d 69 |r not to| randomi|
|000043c0| 7a 65 20 70 68 61 73 65 | 2e 20 54 72 79 20 74 68 |ze phase|. Try th|
|000043d0| 65 20 64 65 6d 6f 73 20 | 53 61 6e 64 73 74 6f 72 |e demos |Sandstor|
|000043e0| 6d 20 61 6e 64 20 4e 6f | 69 73 65 56 42 4c 2e 0d |m and No|iseVBL..|
|000043f0| 0d 4d 61 78 69 6d 69 7a | 65 43 6f 6e 73 6f 6c 65 |.Maximiz|eConsole|
|00004400| 48 65 69 67 68 74 2e 63 | 20 63 61 75 73 65 73 20 |Height.c| causes |
|00004410| 74 68 65 20 54 48 49 4e | 4b 20 43 20 63 6f 6e 73 |the THIN|K C cons|
|00004420| 6f 6c 65 20 74 6f 20 6f | 70 65 6e 20 74 6f 20 74 |ole to o|pen to t|
|00004430| 68 65 20 66 75 6c 6c 20 | 68 65 69 67 68 74 20 6f |he full |height o|
|00004440| 66 20 79 6f 75 72 20 6d | 61 69 6e 20 73 63 72 65 |f your m|ain scre|
|00004450| 65 6e 2e 20 0d 0d 6d 63 | 36 38 38 38 31 2e 68 20 |en. ..mc|68881.h |
|00004460| 64 65 66 69 6e 65 73 20 | 4d 50 57 20 43 d5 73 20 |defines |MPW C.s |
|00004470| 6d 63 36 38 38 38 31 20 | 61 6e 64 20 6d 63 36 38 |mc68881 |and mc68|
|00004480| 30 32 30 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |020 prep|rocessor|
|00004490| 20 73 79 6d 62 6f 6c 73 | 20 66 6f 72 20 54 48 49 | symbols| for THI|
|000044a0| 4e 4b 20 43 2c 20 73 6f | 20 79 6f 75 72 20 70 72 |NK C, so| your pr|
|000044b0| 6f 67 72 61 6d 73 20 63 | 61 6e 20 75 73 65 20 74 |ograms c|an use t|
|000044c0| 68 65 6d 20 69 6e 20 d2 | 69 66 d3 20 73 74 61 74 |hem in .|if. stat|
|000044d0| 65 6d 65 6e 74 73 20 77 | 69 74 68 6f 75 74 20 77 |ements w|ithout w|
|000044e0| 6f 72 72 79 69 6e 67 20 | 61 62 6f 75 74 20 77 68 |orrying |about wh|
|000044f0| 69 63 68 20 63 6f 6d 70 | 69 6c 65 72 20 79 6f 75 |ich comp|iler you|
|00004500| d5 72 65 20 75 73 69 6e | 67 2e 20 54 68 65 20 73 |.re usin|g. The s|
|00004510| 79 6d 62 6f 6c 73 20 61 | 72 65 20 31 20 28 69 2e |ymbols a|re 1 (i.|
|00004520| 65 2e 20 74 72 75 65 29 | 20 69 66 20 74 68 65 20 |e. true)| if the |
|00004530| 63 6f 6d 70 69 6c 65 64 | 20 63 6f 64 65 20 72 65 |compiled| code re|
|00004540| 71 75 69 72 65 73 20 74 | 68 65 20 63 68 69 70 20 |quires t|he chip |
|00004550| 28 6f 72 20 62 65 74 74 | 65 72 29 20 61 6e 64 20 |(or bett|er) and |
|00004560| 30 20 6f 74 68 65 72 77 | 69 73 65 2e 0d 0d 4d 65 |0 otherw|ise...Me|
|00004570| 61 6e 2e 63 20 63 6f 6d | 70 75 74 65 73 20 6d 65 |an.c com|putes me|
|00004580| 61 6e 20 28 61 6e 64 20 | 6f 70 74 69 6f 6e 61 6c |an (and |optional|
|00004590| 6c 79 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |ly the s|tandard |
|000045a0| 64 65 76 69 61 74 69 6f | 6e 29 20 6f 66 20 61 6e |deviatio|n) of an|
|000045b0| 20 61 72 72 61 79 20 6f | 66 20 73 61 6d 70 6c 65 | array o|f sample|
|000045c0| 73 20 28 61 6c 6c 20 64 | 6f 75 62 6c 65 73 29 2e |s (all d|oubles).|
|000045d0| 0d 0d 4e 6f 72 6d 61 6c | 2e 63 20 63 6f 6d 70 75 |..Normal|.c compu|
|000045e0| 74 65 73 20 74 68 65 20 | 70 72 6f 62 61 62 69 6c |tes the |probabil|
|000045f0| 69 74 79 20 64 65 6e 73 | 69 74 79 2c 20 63 75 6d |ity dens|ity, cum|
|00004600| 75 6c 61 74 69 76 65 20 | 64 69 73 74 72 69 62 75 |ulative |distribu|
|00004610| 74 69 6f 6e 2c 20 61 6e | 64 20 69 6e 76 65 72 73 |tion, an|d invers|
|00004620| 65 20 63 75 6d 75 6c 61 | 74 69 76 65 20 64 69 73 |e cumula|tive dis|
|00004630| 74 72 69 62 75 74 69 6f | 6e 20 66 6f 72 20 74 68 |tributio|n for th|
|00004640| 65 20 6e 6f 72 6d 61 6c | 20 64 69 73 74 72 69 62 |e normal| distrib|
|00004650| 75 74 69 6f 6e 2e 0d 0d | 6e 72 61 6e 64 2e 63 2c |ution...|nrand.c,|
|00004660| 20 6e 72 61 6e 64 55 28 | 6e 29 2c 20 61 6e 64 20 | nrandU(|n), and |
|00004670| 6e 72 61 6e 64 55 4c 28 | 6e 29 20 72 65 74 75 72 |nrandUL(|n) retur|
|00004680| 6e 20 61 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |n a rand|om numbe|
|00004690| 72 20 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 5b |r in the| range [|
|000046a0| 30 2c 6e 2d 31 5d 2e 20 | 20 54 68 65 20 74 79 70 |0,n-1]. | The typ|
|000046b0| 65 20 6f 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |e of the| argumen|
|000046c0| 74 20 61 6e 64 20 72 65 | 74 75 72 6e 65 64 20 76 |t and re|turned v|
|000046d0| 61 6c 75 65 20 61 72 65 | 20 62 6f 74 68 20 73 68 |alue are| both sh|
|000046e0| 6f 72 74 2c 20 75 6e 73 | 69 67 6e 65 64 20 73 68 |ort, uns|igned sh|
|000046f0| 6f 72 74 2c 20 6f 72 20 | 75 6e 73 69 67 6e 65 64 |ort, or |unsigned|
|00004700| 20 6c 6f 6e 67 2c 20 72 | 65 73 70 65 63 74 69 76 | long, r|espectiv|
|00004710| 65 6c 79 2e 0d 0d 4f 70 | 65 6e 44 61 74 61 46 69 |ely...Op|enDataFi|
|00004720| 6c 65 2e 63 20 6f 70 65 | 6e 73 20 61 20 70 61 72 |le.c ope|ns a par|
|00004730| 61 6d 65 74 65 72 20 66 | 69 6c 65 20 66 6f 72 20 |ameter f|ile for |
|00004740| 69 6e 70 75 74 20 61 6e | 64 20 61 20 64 61 74 61 |input an|d a data|
|00004750| 20 66 69 6c 65 20 66 6f | 72 20 6f 75 74 70 75 74 | file fo|r output|
|00004760| 2e 20 4f 75 74 70 75 74 | 20 66 69 6c 65 20 6e 61 |. Output| file na|
|00004770| 6d 65 20 69 6e 63 6c 75 | 64 65 73 20 61 20 74 69 |me inclu|des a ti|
|00004780| 6d 65 20 73 74 61 6d 70 | 2c 20 6d 61 6b 69 6e 67 |me stamp|, making|
|00004790| 20 69 74 20 75 6e 69 71 | 75 65 2e 0d 0d 50 69 78 | it uniq|ue...Pix|
|000047a0| 4d 61 70 54 6f 50 6f 73 | 74 53 63 72 69 70 74 2e |MapToPos|tScript.|
|000047b0| 63 20 77 69 6c 6c 20 63 | 6f 6e 76 65 72 74 20 61 |c will c|onvert a|
|000047c0| 20 67 72 61 79 73 63 61 | 6c 65 20 69 6d 61 67 65 | graysca|le image|
|000047d0| 20 74 6f 20 61 20 70 6f | 73 74 73 63 72 69 70 74 | to a po|stscript|
|000047e0| 20 66 69 6c 65 20 73 75 | 69 74 61 62 6c 65 20 66 | file su|itable f|
|000047f0| 6f 72 20 70 72 69 6e 74 | 69 6e 67 20 6f 6e 20 61 |or print|ing on a|
|00004800| 20 4c 61 73 65 72 57 72 | 69 74 65 72 20 6f 72 20 | LaserWr|iter or |
|00004810| 4c 69 6e 6f 74 79 70 65 | 2e 0d 0d 50 6c 6f 74 58 |Linotype|...PlotX|
|00004820| 59 2e 63 20 69 73 20 68 | 61 6e 64 79 20 66 6f 72 |Y.c is h|andy for|
|00004830| 20 61 20 71 75 69 63 6b | 20 73 63 72 65 65 6e 20 | a quick| screen |
|00004840| 70 6c 6f 74 2c 20 65 73 | 70 65 63 69 61 6c 6c 79 |plot, es|pecially|
|00004850| 20 6f 66 20 69 6e 63 6f | 6d 69 6e 67 20 64 61 74 | of inco|ming dat|
|00004860| 61 2e 20 49 74 20 70 6c | 6f 74 73 20 6f 6e 65 20 |a. It pl|ots one |
|00004870| 70 6f 69 6e 74 20 61 74 | 20 61 20 74 69 6d 65 2c |point at| a time,|
|00004880| 20 61 6e 64 20 64 6f 65 | 73 20 6c 69 6e 65 73 2c | and doe|s lines,|
|00004890| 20 69 6e 20 65 69 67 68 | 74 20 63 6f 6c 6f 72 73 | in eigh|t colors|
|000048a0| 2c 20 77 69 74 68 20 6f | 70 74 69 6f 6e 61 6c 20 |, with o|ptional |
|000048b0| 64 61 73 68 69 6e 67 2c | 20 61 6e 64 20 6f 70 74 |dashing,| and opt|
|000048c0| 69 6f 6e 61 6c 20 73 79 | 6d 62 6f 6c 73 2e 20 55 |ional sy|mbols. U|
|000048d0| 73 65 64 20 62 79 20 4d | 65 61 73 75 72 65 4d 54 |sed by M|easureMT|
|000048e0| 46 20 66 6f 72 20 6f 6e | 6c 69 6e 65 20 64 69 73 |F for on|line dis|
|000048f0| 70 6c 61 79 2e 0d 0d 50 | 72 69 6e 74 66 45 78 69 |play...P|rintfExi|
|00004900| 74 2e 63 20 70 72 69 6e | 74 73 20 6f 75 74 20 61 |t.c prin|ts out a|
|00004910| 6e 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 20 |n error |message |
|00004920| 61 6e 64 20 65 78 69 74 | 73 2e 20 52 65 71 75 69 |and exit|s. Requi|
|00004930| 72 65 28 29 20 74 65 73 | 74 73 20 66 6f 72 20 61 |re() tes|ts for a|
|00004940| 6e 79 20 72 65 71 75 69 | 72 65 64 20 66 70 75 2c |ny requi|red fpu,|
|00004950| 20 63 70 75 2c 20 61 6e | 64 20 76 65 72 73 69 6f | cpu, an|d versio|
|00004960| 6e 20 6f 66 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |n of Qui|ckDraw, |
|00004970| 61 6e 64 20 6e 6f 74 69 | 66 69 65 73 20 74 68 65 |and noti|fies the|
|00004980| 20 75 73 65 72 20 61 6e | 64 20 65 78 69 74 73 20 | user an|d exits |
|00004990| 67 72 61 63 65 66 75 6c | 6c 79 20 69 66 20 74 68 |graceful|ly if th|
|000049a0| 65 79 27 72 65 20 61 62 | 73 65 6e 74 2e 20 41 6c |ey're ab|sent. Al|
|000049b0| 6c 20 74 68 65 20 64 65 | 6d 6f 73 20 63 61 6c 6c |l the de|mos call|
|000049c0| 20 52 65 71 75 69 72 65 | 28 29 2e 0d 0d 51 44 33 | Require|()...QD3|
|000049d0| 32 45 78 69 73 74 73 2e | 63 20 64 65 74 65 72 6d |2Exists.|c determ|
|000049e0| 69 6e 65 73 20 77 68 65 | 74 68 65 72 20 33 32 2d |ines whe|ther 32-|
|000049f0| 62 69 74 20 51 75 69 63 | 6b 44 72 61 77 20 68 61 |bit Quic|kDraw ha|
|00004a00| 73 20 62 65 65 6e 20 69 | 6e 73 74 61 6c 6c 65 64 |s been i|nstalled|
|00004a10| 2e 20 51 44 38 45 78 69 | 73 74 73 28 29 20 64 65 |. QD8Exi|sts() de|
|00004a20| 74 65 72 6d 69 6e 65 73 | 20 77 68 65 74 68 65 72 |termines| whether|
|00004a30| 20 63 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 | color Q|uickDraw|
|00004a40| 20 69 73 20 70 72 65 73 | 65 6e 74 2e 20 4e 65 77 | is pres|ent. New|
|00004a50| 50 61 6c 65 74 74 65 4d | 61 6e 61 67 65 72 28 29 |PaletteM|anager()|
|00004a60| 20 64 65 74 65 72 6d 69 | 6e 65 73 20 77 68 65 74 | determi|nes whet|
|00004a70| 68 65 72 20 74 68 65 20 | 6e 65 77 20 70 61 6c 65 |her the |new pale|
|00004a80| 74 74 65 20 6d 61 6e 61 | 67 65 72 20 28 64 6f 63 |tte mana|ger (doc|
|00004a90| 75 6d 65 6e 74 65 64 20 | 69 6e 20 49 6e 73 69 64 |umented |in Insid|
|00004aa0| 65 20 4d 61 63 20 76 6f | 6c 75 6d 65 20 56 49 29 |e Mac vo|lume VI)|
|00004ab0| 20 69 73 20 70 72 65 73 | 65 6e 74 2e 20 54 68 65 | is pres|ent. The|
|00004ac0| 73 65 20 72 6f 75 74 69 | 6e 65 73 20 68 61 76 65 |se routi|nes have|
|00004ad0| 20 6e 6f 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 | no sign|ificant |
|00004ae0| 61 64 76 61 6e 74 61 67 | 65 20 6f 76 65 72 20 41 |advantag|e over A|
|00004af0| 70 70 6c 65 27 73 20 47 | 65 73 74 61 6c 74 28 29 |pple's G|estalt()|
|00004b00| 2c 20 77 68 69 63 68 20 | 63 61 6d 65 20 6c 61 74 |, which |came lat|
|00004b10| 65 72 2e 0d 0d 52 61 6e | 64 46 69 6c 6c 2e 63 20 |er...Ran|dFill.c |
|00004b20| 71 75 69 63 6b 6c 79 20 | 66 69 6c 6c 73 20 61 20 |quickly |fills a |
|00004b30| 62 75 66 66 65 72 20 6f | 66 20 61 6e 79 20 73 69 |buffer o|f any si|
|00004b40| 7a 65 20 77 69 74 68 20 | 72 61 6e 64 6f 6d 20 62 |ze with |random b|
|00004b50| 69 74 73 2e 20 55 73 65 | 64 20 62 79 20 4d 61 6b |its. Use|d by Mak|
|00004b60| 65 4e 6f 69 73 65 2e 20 | 54 72 79 20 74 68 65 20 |eNoise. |Try the |
|00004b70| 64 65 6d 6f 73 20 53 61 | 6e 64 73 74 6f 72 6d 2c |demos Sa|ndstorm,|
|00004b80| 20 4e 6f 69 73 65 56 42 | 4c 2c 20 61 6e 64 20 54 | NoiseVB|L, and T|
|00004b90| 69 6d 65 43 50 55 2e 0d | 0d 72 61 6e 64 55 2e 63 |imeCPU..|.randU.c|
|00004ba0| 20 69 73 20 61 20 66 61 | 73 74 20 31 36 2d 62 69 | is a fa|st 16-bi|
|00004bb0| 74 20 72 61 6e 64 6f 6d | 20 6e 75 6d 62 65 72 20 |t random| number |
|00004bc0| 67 65 6e 65 72 61 74 6f | 72 2e 20 72 61 6e 64 55 |generato|r. randU|
|00004bd0| 4c 28 29 20 72 65 74 75 | 72 6e 73 20 61 20 33 32 |L() retu|rns a 32|
|00004be0| 2d 62 69 74 20 72 61 6e | 64 6f 6d 20 6e 75 6d 62 |-bit ran|dom numb|
|00004bf0| 65 72 2e 20 28 54 68 65 | 20 41 4e 53 49 20 73 74 |er. (The| ANSI st|
|00004c00| 61 6e 64 61 72 64 20 72 | 61 6e 64 28 29 20 70 72 |andard r|and() pr|
|00004c10| 6f 76 69 64 65 73 20 6f | 6e 6c 79 20 31 35 20 62 |ovides o|nly 15 b|
|00004c20| 69 74 73 2e 29 0d 0d 52 | 65 61 64 41 73 73 69 67 |its.)..R|eadAssig|
|00004c30| 6e 6d 65 6e 74 73 2e 63 | 20 69 73 20 61 20 72 75 |nments.c| is a ru|
|00004c40| 6e 74 69 6d 65 20 43 20 | 69 6e 74 65 72 70 72 65 |ntime C |interpre|
|00004c50| 74 65 72 20 74 68 61 74 | 20 6f 6e 6c 79 20 61 63 |ter that| only ac|
|00004c60| 63 65 70 74 73 20 61 73 | 73 69 67 6e 6d 65 6e 74 |cepts as|signment|
|00004c70| 73 20 61 6e 64 20 63 6f | 6d 6d 65 6e 74 73 2e 20 |s and co|mments. |
|00004c80| 55 73 65 20 74 68 69 73 | 20 69 6e 20 79 6f 75 72 |Use this| in your|
|00004c90| 20 65 78 70 65 72 69 6d | 65 6e 74 20 74 6f 20 69 | experim|ent to i|
|00004ca0| 6e 74 65 72 70 72 65 74 | 20 61 20 74 65 78 74 20 |nterpret| a text |
|00004cb0| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |file con|taining |
|00004cc0| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 6f 66 20 65 |assignme|nts of e|
|00004cd0| 78 70 65 72 69 6d 65 6e | 74 61 6c 20 70 61 72 61 |xperimen|tal para|
|00004ce0| 6d 65 74 65 72 73 20 74 | 68 61 74 20 64 65 73 63 |meters t|hat desc|
|00004cf0| 72 69 62 65 20 79 6f 75 | 72 20 65 78 70 65 72 69 |ribe you|r experi|
|00004d00| 6d 65 6e 74 61 6c 20 63 | 6f 6e 64 69 74 69 6f 6e |mental c|ondition|
|00004d10| 73 2e 0d 0d 52 65 61 64 | 4c 75 6d 69 6e 61 6e 63 |s...Read|Luminanc|
|00004d20| 65 52 65 63 6f 72 64 2e | 63 20 69 6e 74 65 72 70 |eRecord.|c interp|
|00004d30| 72 65 74 73 20 61 20 4c | 75 6d 69 6e 61 6e 63 65 |rets a L|uminance|
|00004d40| 52 65 63 6f 72 64 3f 2e | 68 20 61 74 20 72 75 6e |Record?.|h at run|
|00004d50| 74 69 6d 65 2c 20 61 73 | 20 61 6e 20 61 6c 74 65 |time, as| an alte|
|00004d60| 72 6e 61 74 69 76 65 20 | 74 6f 20 75 73 69 6e 67 |rnative |to using|
|00004d70| 20 74 68 65 20 70 72 65 | 70 72 6f 63 65 73 73 6f | the pre|processo|
|00004d80| 72 20 23 69 6e 63 6c 75 | 64 65 20 6d 65 63 68 61 |r #inclu|de mecha|
|00004d90| 6e 69 73 6d 20 61 74 20 | 63 6f 6d 70 69 6c 65 20 |nism at |compile |
|00004da0| 74 69 6d 65 2e 0d 0d 52 | 65 61 64 4d 61 74 4c 61 |time...R|eadMatLa|
|00004db0| 62 46 69 6c 65 2e 63 20 | 61 6c 6c 6f 77 73 20 79 |bFile.c |allows y|
|00004dc0| 6f 75 20 74 6f 20 72 65 | 61 64 20 61 6e 64 20 77 |ou to re|ad and w|
|00004dd0| 72 69 74 65 20 4d 61 74 | 4c 61 62 20 62 69 6e 61 |rite Mat|Lab bina|
|00004de0| 72 79 20 64 61 74 61 20 | 66 69 6c 65 73 2e 20 4d |ry data |files. M|
|00004df0| 61 74 4c 61 62 20 69 73 | 20 61 20 63 6f 6d 6d 65 |atLab is| a comme|
|00004e00| 72 63 69 61 6c 20 61 70 | 70 6c 69 63 61 74 69 6f |rcial ap|plicatio|
|00004e10| 6e 2c 20 73 6f 72 74 20 | 6f 66 20 6c 69 6b 65 20 |n, sort |of like |
|00004e20| 42 41 53 49 43 20 72 65 | 77 72 69 74 74 65 6e 20 |BASIC re|written |
|00004e30| 62 79 20 73 6f 6d 65 6f | 6e 65 20 77 68 6f 20 6c |by someo|ne who l|
|00004e40| 69 6b 65 73 20 6c 69 6e | 65 61 72 20 61 6c 67 65 |ikes lin|ear alge|
|00004e50| 62 72 61 2e 20 52 65 61 | 64 4d 61 74 4c 61 62 46 |bra. Rea|dMatLabF|
|00004e60| 69 6c 65 2e 63 20 69 73 | 20 62 61 73 65 64 20 6f |ile.c is| based o|
|00004e70| 6e 20 63 6f 64 65 20 77 | 72 69 74 74 65 6e 20 62 |n code w|ritten b|
|00004e80| 79 20 4a 2e 4e 2e 20 4c | 69 74 74 6c 65 2e 0d 0d |y J.N. L|ittle...|
|00004e90| 52 65 63 74 54 6f 41 64 | 64 72 65 73 73 2e 63 20 |RectToAd|dress.c |
|00004ea0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 6d 65 6d 6f |returns |the memo|
|00004eb0| 72 79 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |ry addre|ss of th|
|00004ec0| 65 20 70 69 78 65 6c 20 | 69 6e 20 61 20 50 69 78 |e pixel |in a Pix|
|00004ed0| 4d 61 70 20 6f 72 20 42 | 69 74 4d 61 70 2e 20 54 |Map or B|itMap. T|
|00004ee0| 6f 20 6d 79 20 6b 6e 6f | 77 6c 65 64 67 65 20 69 |o my kno|wledge i|
|00004ef0| 74 20 77 69 6c 6c 20 41 | 4c 57 41 59 53 20 77 6f |t will A|LWAYS wo|
|00004f00| 72 6b 2c 20 64 65 61 6c | 69 6e 67 20 63 6f 72 72 |rk, deal|ing corr|
|00004f10| 65 63 74 6c 79 20 77 69 | 74 68 20 61 20 77 68 6f |ectly wi|th a who|
|00004f20| 6c 65 20 73 6c 65 77 20 | 6f 66 20 73 70 65 63 69 |le slew |of speci|
|00004f30| 61 6c 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |al confi|guration|
|00004f40| 73 2e 20 55 73 65 64 20 | 62 79 20 43 6f 70 79 42 |s. Used |by CopyB|
|00004f50| 69 74 73 51 75 69 63 6b | 6c 79 2e 0d 0d 52 65 73 |itsQuick|ly...Res|
|00004f60| 74 6f 72 65 43 6c 75 74 | 73 2e 63 20 72 65 73 74 |toreClut|s.c rest|
|00004f70| 6f 72 65 73 20 74 68 65 | 20 43 6f 6c 6f 72 20 4c |ores the| Color L|
|00004f80| 6f 6f 6b 75 70 20 54 61 | 62 6c 65 73 20 6f 66 20 |ookup Ta|bles of |
|00004f90| 61 6c 6c 20 73 63 72 65 | 65 6e 73 2c 20 74 6f 20 |all scre|ens, to |
|00004fa0| 63 6c 65 61 6e 20 75 70 | 20 77 68 65 6e 20 79 6f |clean up| when yo|
|00004fb0| 75 72 20 70 72 6f 67 72 | 61 6d 20 69 73 20 64 6f |ur progr|am is do|
|00004fc0| 6e 65 2e 0d 0d 53 61 6e | 65 2e 63 20 68 61 73 20 |ne...San|e.c has |
|00004fd0| 72 6f 75 74 69 6e 65 73 | 2c 20 44 6f 75 62 6c 65 |routines|, Double|
|00004fe0| 54 6f 45 78 74 65 6e 64 | 65 64 28 29 20 61 6e 64 |ToExtend|ed() and|
|00004ff0| 20 45 78 74 65 6e 64 65 | 64 54 6f 44 6f 75 62 6c | Extende|dToDoubl|
|00005000| 65 28 29 2c 20 74 68 61 | 74 20 63 6f 6e 76 65 72 |e(), tha|t conver|
|00005010| 74 20 62 61 63 6b 20 61 | 6e 64 20 66 6f 72 74 68 |t back a|nd forth|
|00005020| 20 62 65 74 77 65 65 6e | 20 31 32 2d 62 79 74 65 | between| 12-byte|
|00005030| 20 61 6e 64 20 31 30 2d | 62 79 74 65 20 66 6c 6f | and 10-|byte flo|
|00005040| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 66 6f 72 6d |ating po|int form|
|00005050| 61 74 73 2e 20 54 68 65 | 20 6f 6e 6c 79 20 72 65 |ats. The| only re|
|00005060| 61 73 6f 6e 20 66 6f 72 | 20 64 6f 69 6e 67 20 74 |ason for| doing t|
|00005070| 68 69 73 20 77 6f 75 6c | 64 20 62 65 20 74 6f 20 |his woul|d be to |
|00005080| 61 63 63 65 73 73 20 6e | 75 6d 65 72 69 63 61 6c |access n|umerical|
|00005090| 20 72 6f 75 74 69 6e 65 | 73 20 69 6e 20 41 70 70 | routine|s in App|
|000050a0| 6c 65 d5 73 20 53 41 4e | 45 20 6c 69 62 72 61 72 |le.s SAN|E librar|
|000050b0| 79 2e 0d 0d 53 65 74 45 | 6e 74 72 69 65 73 51 75 |y...SetE|ntriesQu|
|000050c0| 69 63 6b 6c 79 2e 63 2c | 20 77 72 69 74 74 65 6e |ickly.c,| written|
|000050d0| 20 70 72 69 6d 61 72 69 | 6c 79 20 62 79 20 52 61 | primari|ly by Ra|
|000050e0| 79 6e 61 6c 64 20 43 6f | 6d 74 6f 69 73 2c 20 50 |ynald Co|mtois, P|
|000050f0| 65 74 65 72 20 4c 65 6e | 6e 69 65 2c 20 61 6e 64 |eter Len|nie, and|
|00005100| 20 42 69 6c 6c 20 48 61 | 61 6b 65 2c 20 71 75 69 | Bill Ha|ake, qui|
|00005110| 63 6b 6c 79 20 6c 6f 61 | 64 73 20 74 68 65 20 63 |ckly loa|ds the c|
|00005120| 6c 75 74 20 6f 66 20 6d | 61 6e 79 20 70 6f 70 75 |lut of m|any popu|
|00005130| 6c 61 72 20 76 69 64 65 | 6f 20 63 61 72 64 73 2e |lar vide|o cards.|
|00005140| 20 54 72 79 20 74 68 65 | 20 64 65 6d 6f 20 54 69 | Try the| demo Ti|
|00005150| 6d 65 56 69 64 65 6f 2e | 0d 0d 53 65 74 46 69 6c |meVideo.|..SetFil|
|00005160| 65 49 6e 66 6f 2e 63 20 | 69 73 20 61 20 68 61 6e |eInfo.c |is a han|
|00005170| 64 79 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 73 65 |dy routi|ne to se|
|00005180| 74 20 74 68 65 20 63 72 | 65 61 74 6f 72 20 61 6e |t the cr|eator an|
|00005190| 64 20 74 79 70 65 20 6f | 66 20 61 20 66 69 6c 65 |d type o|f a file|
|000051a0| 2e 20 54 68 65 20 6d 61 | 69 6e 20 75 73 65 20 66 |. The ma|in use f|
|000051b0| 6f 72 20 74 68 69 73 20 | 69 73 20 74 6f 20 6d 61 |or this |is to ma|
|000051c0| 6b 65 20 64 61 74 61 20 | 66 69 6c 65 73 20 6f 66 |ke data |files of|
|000051d0| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 74 79 70 | the cor|rect typ|
|000051e0| 65 20 73 6f 20 74 68 61 | 74 20 74 68 65 79 20 63 |e so tha|t they c|
|000051f0| 61 6e 20 62 65 20 64 6f | 75 62 6c 65 20 63 6c 69 |an be do|uble cli|
|00005200| 63 6b 65 64 20 61 6e 64 | 20 77 69 6c 6c 20 6f 70 |cked and| will op|
|00005210| 65 6e 20 64 69 72 65 63 | 74 6c 79 20 69 6e 74 6f |en direc|tly into|
|00005220| 20 74 68 65 20 61 6e 61 | 6c 79 73 69 73 20 70 72 | the ana|lysis pr|
|00005230| 6f 67 72 61 6d 2c 20 74 | 79 70 69 63 61 6c 6c 79 |ogram, t|ypically|
|00005240| 20 45 78 63 65 6c 20 6f | 72 20 43 72 69 63 6b 65 | Excel o|r Cricke|
|00005250| 74 20 47 72 61 70 68 2e | 0d 0d 53 65 74 4d 6f 75 |t Graph.|..SetMou|
|00005260| 73 65 2e 63 20 6d 6f 76 | 65 73 20 74 68 65 20 6d |se.c mov|es the m|
|00005270| 6f 75 73 65 2e 20 49 74 | 20 63 6f 6d 70 6c 65 6d |ouse. It| complem|
|00005280| 65 6e 74 73 20 74 68 65 | 20 41 70 70 6c 65 2d 73 |ents the| Apple-s|
|00005290| 75 70 70 6c 69 65 64 20 | 47 65 74 4d 6f 75 73 65 |upplied |GetMouse|
|000052a0| 28 29 2e 20 46 72 6f 6d | 20 20 54 48 49 4e 4b 69 |(). From| THINKi|
|000052b0| 6e 27 20 43 61 50 2c 20 | 31 28 32 29 3a 32 38 2d |n' CaP, |1(2):28-|
|000052c0| 32 39 2c 20 46 61 6c 6c | 20 31 39 39 30 2e 20 0d |29, Fall| 1990. .|
|000052d0| 0d 53 65 74 4f 6e 65 50 | 69 78 65 6c 2e 63 20 69 |.SetOneP|ixel.c i|
|000052e0| 73 20 6f 62 73 6f 6c 65 | 74 65 3b 20 75 73 65 20 |s obsole|te; use |
|000052f0| 53 65 74 50 69 78 65 6c | 73 51 75 69 63 6b 6c 79 |SetPixel|sQuickly|
|00005300| 20 69 6e 73 74 65 61 64 | 2c 20 62 65 63 61 75 73 | instead|, becaus|
|00005310| 65 20 69 74 27 73 20 74 | 65 6e 20 74 69 6d 65 73 |e it's t|en times|
|00005320| 20 66 61 73 74 65 72 2e | 20 54 68 65 20 72 6f 75 | faster.| The rou|
|00005330| 74 69 6e 65 73 20 69 6e | 63 6c 75 64 65 20 47 65 |tines in|clude Ge|
|00005340| 74 4f 6e 65 50 69 78 65 | 6c 28 29 2c 20 53 65 74 |tOnePixe|l(), Set|
|00005350| 44 65 76 69 63 65 50 69 | 78 65 6c 28 29 2c 20 47 |DevicePi|xel(), G|
|00005360| 65 74 44 65 76 69 63 65 | 50 69 78 65 6c 28 29 2c |etDevice|Pixel(),|
|00005370| 20 53 65 74 50 69 78 6d | 61 70 50 69 78 65 6c 28 | SetPixm|apPixel(|
|00005380| 29 2c 20 47 65 74 50 69 | 78 6d 61 70 50 69 78 65 |), GetPi|xmapPixe|
|00005390| 6c 28 29 2e 20 0d 0d 53 | 65 74 50 69 78 65 6c 73 |l(). ..S|etPixels|
|000053a0| 51 75 69 63 6b 6c 79 2e | 63 20 70 6f 6b 65 73 20 |Quickly.|c pokes |
|000053b0| 6f 72 20 70 65 65 6b 73 | 20 61 20 72 6f 77 20 6f |or peeks| a row o|
|000053c0| 66 20 70 69 78 65 6c 73 | 2c 20 62 79 70 61 73 73 |f pixels|, bypass|
|000053d0| 69 6e 67 20 74 68 65 20 | 63 6f 6c 6f 72 20 74 61 |ing the |color ta|
|000053e0| 62 6c 65 73 2e 20 54 68 | 69 73 20 69 73 20 74 68 |bles. Th|is is th|
|000053f0| 65 20 66 61 73 74 65 73 | 74 20 77 61 79 20 74 6f |e fastes|t way to|
|00005400| 20 67 65 74 20 61 74 20 | 74 68 65 20 70 69 78 65 | get at |the pixe|
|00005410| 6c 73 20 69 6e 20 61 6e | 20 69 6d 61 67 65 2c 20 |ls in an| image, |
|00005420| 66 6f 72 20 69 6d 61 67 | 65 20 70 72 6f 63 65 73 |for imag|e proces|
|00005430| 73 69 6e 67 20 6f 72 20 | 73 79 6e 74 68 65 73 69 |sing or |synthesi|
|00005440| 73 2e 20 41 6c 6c 20 74 | 68 65 20 72 6f 75 74 69 |s. All t|he routi|
|00005450| 6e 65 73 20 77 6f 72 6b | 20 77 69 74 68 20 62 6f |nes work| with bo|
|00005460| 74 68 20 62 69 74 6d 61 | 70 73 20 61 6e 64 20 70 |th bitma|ps and p|
|00005470| 69 78 6d 61 70 73 20 61 | 6e 64 20 61 6e 79 20 73 |ixmaps a|nd any s|
|00005480| 69 7a 65 20 6f 66 20 70 | 69 78 65 6c 3a 31 2c 20 |ize of p|ixel:1, |
|00005490| 32 2c 20 34 2c 20 38 2c | 20 31 36 2c 20 6f 72 20 |2, 4, 8,| 16, or |
|000054a0| 33 32 20 62 69 74 73 2e | 20 54 72 79 20 74 68 65 |32 bits.| Try the|
|000054b0| 20 64 65 6d 6f 73 20 47 | 72 61 74 69 6e 67 20 61 | demos G|rating a|
|000054c0| 6e 64 20 46 6c 69 63 6b | 65 72 69 6e 67 47 72 61 |nd Flick|eringGra|
|000054d0| 74 69 6e 67 2e 0d 0d 53 | 65 74 50 72 69 6f 72 69 |ting...S|etPriori|
|000054e0| 74 79 2e 63 20 61 6e 64 | 20 53 77 61 70 50 72 69 |ty.c and| SwapPri|
|000054f0| 6f 72 69 74 79 28 29 20 | 61 6c 6c 6f 77 20 79 6f |ority() |allow yo|
|00005500| 75 20 74 6f 20 73 65 74 | 20 74 68 65 20 70 72 6f |u to set| the pro|
|00005510| 63 65 73 73 6f 72 20 70 | 72 69 6f 72 69 74 79 20 |cessor p|riority |
|00005520| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 70 72 65 76 |in order| to prev|
|00005530| 65 6e 74 20 69 6e 74 65 | 72 72 75 70 74 73 20 64 |ent inte|rrupts d|
|00005540| 75 72 69 6e 67 20 73 6f | 6d 65 74 68 69 6e 67 20 |uring so|mething |
|00005550| 74 68 61 74 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |that you| want to|
|00005560| 20 64 6f 20 61 73 20 66 | 61 73 74 20 61 73 20 70 | do as f|ast as p|
|00005570| 6f 73 73 69 62 6c 65 2c | 20 65 2e 67 2e 20 61 6e |ossible,| e.g. an|
|00005580| 69 6d 61 74 69 6f 6e 73 | 2e 20 4e 6f 74 65 20 74 |imations|. Note t|
|00005590| 68 61 74 20 72 61 69 73 | 69 6e 67 20 74 68 65 20 |hat rais|ing the |
|000055a0| 70 72 6f 63 65 73 73 6f | 72 20 70 72 69 6f 72 69 |processo|r priori|
|000055b0| 74 79 20 77 69 6c 6c 20 | 74 65 6d 70 6f 72 61 72 |ty will |temporar|
|000055c0| 69 6c 79 20 6d 61 6b 65 | 20 74 68 65 20 6d 6f 75 |ily make| the mou|
|000055d0| 73 65 20 61 6e 64 20 6b | 65 79 62 6f 61 72 64 20 |se and k|eyboard |
|000055e0| 64 65 61 64 2c 20 62 65 | 63 61 75 73 65 20 74 68 |dead, be|cause th|
|000055f0| 65 79 20 61 72 65 20 73 | 65 72 76 69 63 65 64 20 |ey are s|erviced |
|00005600| 62 79 20 69 6e 74 65 72 | 72 75 70 74 73 2e 20 0d |by inter|rupts. .|
|00005610| 0d 53 68 75 66 66 6c 65 | 2e 63 20 72 61 6e 64 6f |.Shuffle|.c rando|
|00005620| 6d 6c 79 20 73 68 75 66 | 66 6c 65 73 20 61 6e 20 |mly shuf|fles an |
|00005630| 61 72 72 61 79 20 6f 66 | 20 73 68 6f 72 74 73 2e |array of| shorts.|
|00005640| 0d 0d 53 6e 64 50 6c 61 | 79 31 2e 63 20 70 6c 61 |..SndPla|y1.c pla|
|00005650| 79 73 20 61 20 73 6f 75 | 6e 64 20 61 73 79 6e 63 |ys a sou|nd async|
|00005660| 68 72 6f 6e 6f 75 73 6c | 79 2c 20 69 2e 65 2e 20 |hronousl|y, i.e. |
|00005670| 69 74 20 72 65 74 75 72 | 6e 73 20 69 6d 6d 65 64 |it retur|ns immed|
|00005680| 69 61 74 65 6c 79 2c 20 | 77 68 69 6c 65 20 74 68 |iately, |while th|
|00005690| 65 20 73 6f 75 6e 64 20 | 69 73 20 73 74 69 6c 6c |e sound |is still|
|000056a0| 20 70 6c 61 79 69 6e 67 | 2e 0d 0d 53 74 72 69 6e | playing|...Strin|
|000056b0| 67 54 6f 44 61 74 65 2e | 63 20 72 65 61 64 73 20 |gToDate.|c reads |
|000056c0| 64 61 74 65 20 73 75 63 | 68 20 61 73 20 d2 36 2f |date suc|h as .6/|
|000056d0| 33 30 2f 39 31 d3 20 61 | 6e 64 20 72 65 74 75 72 |30/91. a|nd retur|
|000056e0| 6e 73 20 73 65 63 73 20 | 73 69 6e 63 65 20 31 2f |ns secs |since 1/|
|000056f0| 31 2f 31 39 30 34 2e 0d | 0d 54 69 6d 65 72 2e 63 |1/1904..|.Timer.c|
|00005700| 20 69 73 20 61 6e 20 69 | 6e 74 65 72 76 61 6c 20 | is an i|nterval |
|00005710| 74 69 6d 65 72 20 62 61 | 73 65 64 20 6f 6e 20 41 |timer ba|sed on A|
|00005720| 70 70 6c 65 d5 73 20 54 | 69 6d 65 20 4d 61 6e 61 |pple.s T|ime Mana|
|00005730| 67 65 72 2e 20 53 74 6f | 70 54 69 6d 65 72 28 29 |ger. Sto|pTimer()|
|00005740| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 74 69 6d | returns| the tim|
|00005750| 65 2c 20 61 73 20 61 20 | 6c 6f 6e 67 2c 20 69 6e |e, as a |long, in|
|00005760| 20 b5 73 20 74 68 61 74 | 20 65 6c 61 70 73 65 64 | .s that| elapsed|
|00005770| 20 73 69 6e 63 65 20 63 | 61 6c 6c 69 6e 67 20 53 | since c|alling S|
|00005780| 74 61 72 74 54 69 6d 65 | 72 28 29 2e 20 53 74 6f |tartTime|r(). Sto|
|00005790| 70 54 69 6d 65 72 53 65 | 63 73 28 29 20 72 65 74 |pTimerSe|cs() ret|
|000057a0| 75 72 6e 73 20 74 68 65 | 20 65 6c 61 70 73 65 64 |urns the| elapsed|
|000057b0| 20 74 69 6d 65 20 61 73 | 20 61 20 64 6f 75 62 6c | time as| a doubl|
|000057c0| 65 2c 20 69 6e 20 73 65 | 63 6f 6e 64 73 2e 20 54 |e, in se|conds. T|
|000057d0| 72 79 20 74 68 65 20 64 | 65 6d 6f 73 20 54 69 6d |ry the d|emos Tim|
|000057e0| 65 43 50 55 20 61 6e 64 | 20 54 69 6d 65 56 69 64 |eCPU and| TimeVid|
|000057f0| 65 6f 2e 0d 0d 54 69 74 | 6c 65 42 61 72 48 65 69 |eo...Tit|leBarHei|
|00005800| 67 68 74 2e 63 20 72 65 | 74 75 72 6e 73 20 74 68 |ght.c re|turns th|
|00005810| 65 20 68 65 69 67 68 74 | 20 6f 66 20 61 20 77 69 |e height| of a wi|
|00005820| 6e 64 6f 77 d5 73 20 74 | 69 74 6c 65 20 62 61 72 |ndow.s t|itle bar|
|00005830| 2c 20 69 6e 20 70 69 78 | 65 6c 73 2e 0d 0d 54 72 |, in pix|els...Tr|
|00005840| 61 70 41 76 61 69 6c 61 | 62 6c 65 2e 63 2c 20 66 |apAvaila|ble.c, f|
|00005850| 72 6f 6d 20 41 70 70 6c | 65 2c 20 64 65 74 65 72 |rom Appl|e, deter|
|00005860| 6d 69 6e 65 73 20 77 68 | 65 74 68 65 72 20 61 20 |mines wh|ether a |
|00005870| 70 61 72 74 69 63 75 6c | 61 72 20 74 72 61 70 20 |particul|ar trap |
|00005880| 69 73 20 61 76 61 69 6c | 61 62 6c 65 2e 0d 0d 55 |is avail|able...U|
|00005890| 6e 69 66 6f 72 6d 2e 63 | 3a 20 55 6e 69 66 6f 72 |niform.c|: Unifor|
|000058a0| 6d 53 61 6d 70 6c 65 28 | 29 20 72 65 74 75 72 6e |mSample(|) return|
|000058b0| 73 20 61 20 72 61 6e 64 | 6f 6d 20 73 61 6d 70 6c |s a rand|om sampl|
|000058c0| 65 20 66 72 6f 6d 20 74 | 68 65 20 69 6e 74 65 72 |e from t|he inter|
|000058d0| 76 61 6c 20 5b 30 2c 31 | 29 2e 20 0d 0d 56 42 4c |val [0,1|). ..VBL|
|000058e0| 49 6e 73 74 61 6c 6c 2e | 63 20 69 6d 70 6c 65 6d |Install.|c implem|
|000058f0| 65 6e 74 73 20 61 20 6f | 6e 63 65 2d 70 65 72 2d |ents a o|nce-per-|
|00005900| 76 69 64 65 6f 2d 66 72 | 61 6d 65 20 69 6e 74 65 |video-fr|ame inte|
|00005910| 72 72 75 70 74 20 73 75 | 69 74 61 62 6c 65 20 66 |rrupt su|itable f|
|00005920| 6f 72 20 75 73 65 20 77 | 69 74 68 20 61 6c 6c 20 |or use w|ith all |
|00005930| 76 69 64 65 6f 20 64 65 | 76 69 63 65 73 2e 20 54 |video de|vices. T|
|00005940| 72 79 20 74 68 65 20 64 | 65 6d 6f 20 54 69 6d 65 |ry the d|emo Time|
|00005950| 56 69 64 65 6f 2e 0d 0d | 56 69 64 65 6f 54 46 42 |Video...|VideoTFB|
|00005960| 2e 63 20 61 6c 6c 6f 77 | 73 20 64 69 72 65 63 74 |.c allow|s direct|
|00005970| 20 63 6f 6e 74 72 6f 6c | 20 6f 66 20 74 68 65 20 | control| of the |
|00005980| 6f 72 69 67 69 6e 61 6c | 20 41 70 70 6c 65 20 63 |original| Apple c|
|00005990| 6f 6c 6f 72 20 76 69 64 | 65 6f 20 63 61 72 64 2c |olor vid|eo card,|
|000059a0| 20 77 68 69 63 68 20 69 | 73 20 6e 6f 20 6c 6f 6e | which i|s no lon|
|000059b0| 67 65 72 20 73 6f 6c 64 | 20 62 79 20 41 70 70 6c |ger sold| by Appl|
|000059c0| 65 20 62 75 74 20 69 73 | 20 61 76 61 69 6c 61 62 |e but is| availab|
|000059d0| 6c 65 20 66 6f 72 20 24 | 39 30 20 66 72 6f 6d 20 |le for $|90 from |
|000059e0| 53 68 72 65 76 65 20 53 | 79 73 74 65 6d 73 20 28 |Shreve S|ystems (|
|000059f0| 38 30 30 2d 32 32 37 2d | 33 39 37 31 29 2e 20 49 |800-227-|3971). I|
|00005a00| 20 77 72 6f 74 65 20 69 | 74 20 62 61 73 65 64 20 | wrote i|t based |
|00005a10| 6f 6e 20 6d 79 20 64 69 | 73 61 73 73 65 6d 62 6c |on my di|sassembl|
|00005a20| 79 20 6f 66 20 74 68 65 | 20 41 70 70 6c 65 20 76 |y of the| Apple v|
|00005a30| 69 64 65 6f 20 64 72 69 | 76 65 72 2e 20 44 6f 6e |ideo dri|ver. Don|
|00005a40| d5 74 20 75 73 65 20 74 | 68 65 73 65 20 72 6f 75 |.t use t|hese rou|
|00005a50| 74 69 6e 65 73 20 75 6e | 6c 65 73 73 20 79 6f 75 |tines un|less you|
|00005a60| d5 72 65 20 70 72 65 70 | 61 72 65 64 20 74 6f 20 |.re prep|ared to |
|00005a70| 6c 69 76 65 20 77 69 74 | 68 20 74 68 65 20 72 65 |live wit|h the re|
|00005a80| 73 75 6c 74 69 6e 67 20 | 68 61 72 64 77 61 72 65 |sulting |hardware|
|00005a90| 20 64 65 70 65 6e 64 65 | 6e 63 79 2e 20 56 69 64 | depende|ncy. Vid|
|00005aa0| 65 6f 54 46 42 20 77 6f | 72 6b 73 20 77 69 74 68 |eoTFB wo|rks with|
|00005ab0| 20 62 6f 74 68 20 74 68 | 65 20 22 54 6f 62 79 20 | both th|e "Toby |
|00005ac0| 66 72 61 6d 65 20 62 75 | 66 66 65 72 20 63 61 72 |frame bu|ffer car|
|00005ad0| 64 22 20 61 6e 64 20 74 | 68 65 20 22 4d 61 63 20 |d" and t|he "Mac |
|00005ae0| 49 49 20 48 69 67 68 2d | 52 65 73 6f 6c 75 74 69 |II High-|Resoluti|
|00005af0| 6f 6e 20 56 69 64 65 6f | 20 43 61 72 64 22 2e 20 |on Video| Card". |
|00005b00| 54 72 79 20 74 68 65 20 | 64 65 6d 6f 73 20 53 63 |Try the |demos Sc|
|00005b10| 72 6f 6c 6c 44 65 6d 6f | 20 61 6e 64 20 54 69 6d |rollDemo| and Tim|
|00005b20| 65 56 69 64 65 6f 2e 0d | 0d 56 69 64 65 6f 54 6f |eVideo..|.VideoTo|
|00005b30| 6f 6c 62 6f 78 2e 68 20 | 69 73 20 74 68 65 20 68 |olbox.h |is the h|
|00005b40| 65 61 64 65 72 20 66 69 | 6c 65 20 74 68 61 74 20 |eader fi|le that |
|00005b50| 68 61 73 20 74 68 65 20 | 70 72 6f 74 6f 74 79 70 |has the |prototyp|
|00005b60| 65 73 20 66 6f 72 20 61 | 6c 6c 20 74 68 65 20 56 |es for a|ll the V|
|00005b70| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 20 72 6f 75 74 |ideoTool|box rout|
|00005b80| 69 6e 65 73 20 65 78 63 | 65 70 74 20 74 68 6f 73 |ines exc|ept thos|
|00005b90| 65 20 69 6e 20 4c 75 6d | 69 6e 61 6e 63 65 2e 63 |e in Lum|inance.c|
|00005ba0| 20 28 77 68 6f 73 65 20 | 68 65 61 64 65 72 73 20 | (whose |headers |
|00005bb0| 61 72 65 20 69 6e 20 4c | 75 6d 69 6e 61 6e 63 65 |are in L|uminance|
|00005bc0| 2e 68 29 20 61 6e 64 20 | 53 61 6e 65 2e 63 2e 0d |.h) and |Sane.c..|
|00005bd0| 0d 56 4c 61 6d 62 64 61 | 2e 63 20 61 6e 64 20 56 |.VLambda|.c and V|
|00005be0| 4c 61 6d 62 64 61 50 72 | 69 6d 65 28 64 6f 75 62 |LambdaPr|ime(doub|
|00005bf0| 6c 65 20 6e 6d 29 20 72 | 65 74 75 72 6e 20 74 68 |le nm) r|eturn th|
|00005c00| 65 20 70 68 6f 74 6f 70 | 69 63 20 61 6e 64 20 73 |e photop|ic and s|
|00005c10| 63 6f 74 6f 70 69 63 20 | 73 65 6e 73 69 74 69 76 |cotopic |sensitiv|
|00005c20| 69 74 79 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |ity of t|he stand|
|00005c30| 61 72 64 20 43 49 45 20 | 6f 62 73 65 72 76 65 72 |ard CIE |observer|
|00005c40| 2c 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 74 68 |, relati|ve to th|
|00005c50| 65 20 70 65 61 6b 20 61 | 74 20 35 35 35 20 6f 72 |e peak a|t 555 or|
|00005c60| 20 35 30 37 20 6e 6d 2e | 20 42 61 73 65 64 20 6f | 507 nm.| Based o|
|00005c70| 6e 20 54 61 62 6c 65 73 | 20 49 28 33 2e 33 2e 31 |n Tables| I(3.3.1|
|00005c80| 29 20 61 6e 64 20 49 28 | 34 2e 33 2e 32 29 20 69 |) and I(|4.3.2) i|
|00005c90| 6e 20 47 2e 20 57 79 73 | 7a 65 63 6b 69 20 61 6e |n G. Wys|zecki an|
|00005ca0| 64 20 57 2e 53 2e 20 53 | 74 69 6c 65 73 20 28 31 |d W.S. S|tiles (1|
|00005cb0| 39 38 32 29 20 43 6f 6c | 6f 72 20 53 63 69 65 6e |982) Col|or Scien|
|00005cc0| 63 65 2c 20 32 6e 64 20 | 45 64 2e 2c 20 57 69 6c |ce, 2nd |Ed., Wil|
|00005cd0| 65 79 2c 20 4e 65 77 20 | 59 6f 72 6b 2e 0d 0d 5a |ey, New |York...Z|
|00005ce0| 6f 6f 6d 2e 63 20 69 6d | 70 6c 65 6d 65 6e 74 73 |oom.c im|plements|
|00005cf0| 20 61 20 7a 6f 6f 6d 20 | 62 6f 78 2c 20 69 2e 65 | a zoom |box, i.e|
|00005d00| 2e 20 69 66 20 79 6f 75 | 20 63 6c 69 63 6b 20 69 |. if you| click i|
|00005d10| 6e 20 74 68 65 20 75 70 | 70 65 72 20 72 69 67 68 |n the up|per righ|
|00005d20| 74 20 68 61 6e 64 20 63 | 6f 72 6e 65 72 20 6f 66 |t hand c|orner of|
|00005d30| 20 79 6f 75 72 20 77 69 | 6e 64 6f 77 2c 20 69 6e | your wi|ndow, in|
|00005d40| 20 74 68 65 20 6c 69 74 | 74 6c 65 20 62 6f 78 2d | the lit|tle box-|
|00005d50| 69 6e 2d 61 2d 62 6f 78 | 20 69 63 6f 6e 2c 20 74 |in-a-box| icon, t|
|00005d60| 68 69 73 20 63 6f 64 65 | 20 77 69 6c 6c 20 65 78 |his code| will ex|
|00005d70| 70 61 6e 64 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |pand the| window |
|00005d80| 74 6f 20 66 69 6c 6c 20 | 74 68 65 20 73 63 72 65 |to fill |the scre|
|00005d90| 65 6e 20 77 69 74 68 20 | 77 68 69 63 68 20 69 74 |en with |which it|
|00005da0| 20 68 61 73 20 74 68 65 | 20 67 72 65 61 74 65 73 | has the| greates|
|00005db0| 74 20 69 6e 74 65 72 73 | 65 63 74 69 6f 6e 2e 0d |t inters|ection..|
|00005dc0| 0d 47 6f 6f 64 20 6c 75 | 63 6b 21 0d 0d 54 48 45 |.Good lu|ck!..THE|
|00005dd0| 20 46 49 4e 45 20 50 52 | 49 4e 54 3a 0d 43 6f 70 | FINE PR|INT:.Cop|
|00005de0| 79 72 69 67 68 74 20 a9 | 31 39 38 39 2d 31 39 39 |yright .|1989-199|
|00005df0| 33 20 44 65 6e 69 73 20 | 47 2e 20 50 65 6c 6c 69 |3 Denis |G. Pelli|
|00005e00| 2e 20 54 68 65 20 61 63 | 63 6f 6d 70 61 6e 79 69 |. The ac|companyi|
|00005e10| 6e 67 20 73 6f 66 74 77 | 61 72 65 20 69 73 20 66 |ng softw|are is f|
|00005e20| 72 65 65 3b 20 79 6f 75 | 20 6d 61 79 20 75 73 65 |ree; you| may use|
|00005e30| 20 69 74 20 69 6e 20 79 | 6f 75 72 20 72 65 73 65 | it in y|our rese|
|00005e40| 61 72 63 68 20 61 6e 64 | 20 67 69 76 65 20 69 74 |arch and| give it|
|00005e50| 20 61 77 61 79 20 74 6f | 20 6f 74 68 65 72 73 2c | away to| others,|
|00005e60| 20 77 69 74 68 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | with th|e follow|
|00005e70| 69 6e 67 20 72 65 73 74 | 72 69 63 74 69 6f 6e 73 |ing rest|rictions|
|00005e80| 2e 20 41 6e 79 20 63 6f | 70 79 20 79 6f 75 20 67 |. Any co|py you g|
|00005e90| 69 76 65 20 61 77 61 79 | 20 6d 75 73 74 20 69 6e |ive away| must in|
|00005ea0| 63 6c 75 64 65 20 74 68 | 69 73 20 70 61 72 61 67 |clude th|is parag|
|00005eb0| 72 61 70 68 2c 20 75 6e | 6d 6f 64 69 66 69 65 64 |raph, un|modified|
|00005ec0| 2c 20 61 6e 64 20 61 6e | 79 20 66 69 6c 65 20 74 |, and an|y file t|
|00005ed0| 68 61 74 20 79 6f 75 20 | 68 61 76 65 20 63 68 61 |hat you |have cha|
|00005ee0| 6e 67 65 64 20 6d 75 73 | 74 20 69 6e 63 6c 75 64 |nged mus|t includ|
|00005ef0| 65 20 61 20 6e 6f 74 65 | 2c 20 61 64 64 65 64 20 |e a note|, added |
|00005f00| 74 6f 20 48 49 53 54 4f | 52 59 2c 20 67 69 76 69 |to HISTO|RY, givi|
|00005f10| 6e 67 20 79 6f 75 72 20 | 6e 61 6d 65 2c 20 74 68 |ng your |name, th|
|00005f20| 65 20 64 61 74 65 2c 20 | 61 6e 64 20 61 20 64 65 |e date, |and a de|
|00005f30| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|00005f40| 20 63 68 61 6e 67 65 73 | 2e 20 54 68 69 73 20 73 | changes|. This s|
|00005f50| 6f 66 74 77 61 72 65 20 | 6d 61 79 20 6e 6f 74 20 |oftware |may not |
|00005f60| 62 65 20 73 6f 6c 64 2c | 20 77 68 65 74 68 65 72 |be sold,| whether|
|00005f70| 20 69 6e 20 73 6f 75 72 | 63 65 20 6f 72 20 63 6f | in sour|ce or co|
|00005f80| 6d 70 69 6c 65 64 20 66 | 6f 72 6d 2c 20 77 69 74 |mpiled f|orm, wit|
|00005f90| 68 6f 75 74 20 6d 79 20 | 70 65 72 6d 69 73 73 69 |hout my |permissi|
|00005fa0| 6f 6e 2e 20 49 20 68 6f | 70 65 20 79 6f 75 20 77 |on. I ho|pe you w|
|00005fb0| 69 6c 6c 20 66 69 6e 64 | 20 74 68 69 73 20 73 6f |ill find| this so|
|00005fc0| 66 74 77 61 72 65 20 75 | 73 65 66 75 6c 2c 20 62 |ftware u|seful, b|
|00005fd0| 75 74 20 49 20 63 61 6e | d5 74 20 70 72 6f 6d 69 |ut I can|.t promi|
|00005fe0| 73 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |se that |it will |
|00005ff0| 77 6f 72 6b 20 66 6f 72 | 20 79 6f 75 2c 20 61 6e |work for| you, an|
|00006000| 64 20 61 6d 20 6e 6f 74 | 20 6f 66 66 65 72 69 6e |d am not| offerin|
|00006010| 67 20 61 6e 79 20 73 75 | 70 70 6f 72 74 2e 20 54 |g any su|pport. T|
|00006020| 68 61 74 d5 73 20 77 68 | 79 20 69 74 d5 73 20 66 |hat.s wh|y it.s f|
|00006030| 72 65 65 2e 20 49 20 77 | 6f 75 6c 64 20 61 70 70 |ree. I w|ould app|
|00006040| 72 65 63 69 61 74 65 20 | 72 65 70 6f 72 74 73 20 |reciate |reports |
|00006050| 6f 66 20 62 75 67 73 20 | 61 6e 64 20 69 6d 70 72 |of bugs |and impr|
|00006060| 6f 76 65 6d 65 6e 74 73 | 2e 20 20 0d 0d 53 65 74 |ovements|. ..Set|
|00006070| 4d 6f 75 73 65 2e 63 20 | 61 6e 64 20 48 69 64 65 |Mouse.c |and Hide|
|00006080| 4d 65 6e 75 42 61 72 2e | 63 20 61 72 65 20 63 6f |MenuBar.|c are co|
|00006090| 70 79 72 69 67 68 74 65 | 64 20 62 79 20 53 50 4c |pyrighte|d by SPL|
|000060a0| 41 53 48 20 52 65 73 6f | 75 72 63 65 73 2e 20 54 |ASH Reso|urces. T|
|000060b0| 68 65 69 72 20 72 65 73 | 74 72 69 63 74 69 6f 6e |heir res|triction|
|000060c0| 73 20 61 72 65 20 72 65 | 70 72 6f 64 75 63 65 64 |s are re|produced|
|000060d0| 20 69 6e 20 74 68 6f 73 | 65 20 66 69 6c 65 73 2e | in thos|e files.|
|000060e0| 20 46 6c 75 73 68 43 61 | 63 68 65 52 61 6e 67 65 | FlushCa|cheRange|
|000060f0| 2e 63 20 28 6f 72 69 67 | 69 6e 61 6c 6c 79 20 63 |.c (orig|inally c|
|00006100| 61 6c 6c 65 64 20 43 61 | 63 68 65 2e 63 29 20 69 |alled Ca|che.c) i|
|00006110| 73 20 63 6f 70 79 72 69 | 67 68 74 65 64 20 62 79 |s copyri|ghted by|
|00006120| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 20 | Apple C|omputer |
|00006130| 43 6f 72 70 2e 20 0d 54 | 68 65 20 63 6f 6d 70 69 |Corp. .T|he compi|
|00006140| 6c 65 64 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |led appl|ications|
|00006150| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 20 63 6f 64 | incorpo|rate cod|
|00006160| 65 20 63 6f 70 79 72 69 | 67 68 74 65 64 20 62 79 |e copyri|ghted by|
|00006170| 20 6f 74 68 65 72 73 3a | 0d 43 6f 70 79 72 69 67 | others:|.Copyrig|
|00006180| 68 74 20 a9 20 31 39 38 | 39 20 54 48 49 4e 4b 20 |ht . 198|9 THINK |
|00006190| 54 65 63 68 6e 6f 6c 6f | 67 69 65 73 2c 20 49 6e |Technolo|gies, In|
|000061a0| 63 2e 20 43 65 72 74 61 | 69 6e 20 70 6f 72 74 69 |c. Certa|in porti|
|000061b0| 6f 6e 73 20 6f 66 20 74 | 68 69 73 20 73 6f 66 74 |ons of t|his soft|
|000061c0| 77 61 72 65 20 61 72 65 | 20 63 6f 70 79 72 69 67 |ware are| copyrig|
|000061d0| 68 74 65 64 20 62 79 20 | 54 48 49 4e 4b 20 54 65 |hted by |THINK Te|
|000061e0| 63 68 6e 6f 6c 6f 67 69 | 65 73 2c 20 49 6e 63 2e |chnologi|es, Inc.|
|000061f0| 20 43 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 38 | Copyrig|ht . 198|
|00006200| 38 20 43 61 6d 62 72 69 | 64 67 65 20 55 6e 69 76 |8 Cambri|dge Univ|
|00006210| 65 72 73 69 74 79 20 50 | 72 65 73 73 2e 20 54 68 |ersity P|ress. Th|
|00006220| 65 20 4e 75 6d 65 72 69 | 63 61 6c 20 52 65 63 69 |e Numeri|cal Reci|
|00006230| 70 65 73 20 69 6e 20 43 | 20 61 72 65 20 63 6f 70 |pes in C| are cop|
|00006240| 79 72 69 67 68 74 65 64 | 20 62 79 20 43 61 6d 62 |yrighted| by Camb|
|00006250| 72 69 64 67 65 20 55 6e | 69 76 65 72 73 69 74 79 |ridge Un|iversity|
|00006260| 20 50 72 65 73 73 2e 0d | 0d 44 49 53 43 4c 41 49 | Press..|.DISCLAI|
|00006270| 4d 45 52 20 28 69 6e 63 | 6c 75 64 65 64 20 61 74 |MER (inc|luded at|
|00006280| 20 74 68 65 20 72 65 71 | 75 65 73 74 20 6f 66 20 | the req|uest of |
|00006290| 74 68 65 20 4d 61 63 50 | 73 79 63 68 20 61 72 63 |the MacP|sych arc|
|000062a0| 68 69 76 65 29 3a 0d 54 | 68 65 20 56 69 64 65 6f |hive):.T|he Video|
|000062b0| 54 6f 6f 6c 62 6f 78 20 | 69 73 20 70 72 6f 76 69 |Toolbox |is provi|
|000062c0| 64 65 64 20 d2 61 73 20 | 69 73 d3 20 77 69 74 68 |ded .as |is. with|
|000062d0| 6f 75 74 20 77 61 72 72 | 61 6e 74 79 20 6f 66 20 |out warr|anty of |
|000062e0| 61 6e 79 20 6b 69 6e 64 | 2e 20 20 44 65 6e 69 73 |any kind|. Denis|
|000062f0| 20 50 65 6c 6c 69 2c 20 | 53 79 72 61 63 75 73 65 | Pelli, |Syracuse|
|00006300| 20 55 6e 69 76 65 72 73 | 69 74 79 2c 20 53 43 69 | Univers|ity, SCi|
|00006310| 50 2c 20 74 68 65 20 6f | 70 65 72 61 74 6f 72 73 |P, the o|perators|
|00006320| 20 6f 66 20 4d 61 63 50 | 73 79 63 68 2c 20 61 6e | of MacP|sych, an|
|00006330| 64 20 53 74 2e 20 4f 6c | 61 66 20 43 6f 6c 6c 65 |d St. Ol|af Colle|
|00006340| 67 65 20 6d 61 6b 65 20 | 6e 6f 20 63 6c 61 69 6d |ge make |no claim|
|00006350| 73 20 63 6f 6e 63 65 72 | 6e 69 6e 67 20 74 68 65 |s concer|ning the|
|00006360| 20 61 63 63 75 72 61 63 | 79 20 6f 72 20 63 6f 72 | accurac|y or cor|
|00006370| 72 65 63 74 6e 65 73 73 | 20 6f 66 20 74 68 65 20 |rectness| of the |
|00006380| 63 6f 6d 70 75 74 65 72 | 20 63 6f 64 65 20 63 6f |computer| code co|
|00006390| 6e 74 61 69 6e 65 64 20 | 69 6e 2c 20 6f 72 20 74 |ntained |in, or t|
|000063a0| 68 65 20 72 65 73 75 6c | 74 73 20 6f 66 20 74 68 |he resul|ts of th|
|000063b0| 65 20 75 73 65 20 6f 66 | 20 56 69 64 65 6f 54 6f |e use of| VideoTo|
|000063c0| 6f 6c 62 6f 78 2e 20 20 | 54 68 65 20 65 6e 74 69 |olbox. |The enti|
|000063d0| 72 65 20 72 69 73 6b 20 | 61 73 20 74 6f 20 74 68 |re risk |as to th|
|000063e0| 65 20 72 65 73 75 6c 74 | 73 20 61 6e 64 20 70 65 |e result|s and pe|
|000063f0| 72 66 6f 72 6d 61 6e 63 | 65 20 6f 66 20 56 69 64 |rformanc|e of Vid|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.